The raffle draw api is the backend for a raffle draw hosting service. You can host raffle draws, receive payments directly into your bank account, issue tickets on payment, select winners (via a wheel or something similar), track sales and more.
- Create raffle draws
- Create teams
- Invite members to your team
- Track sales and contestants 💵
- Issue tickets on payment 🎫
- Select winning tickets
- Get paid directly into your bank account.
Before running this project, ensure you have the following prerequisites:
- NodeJS v16+
- Postgres
- A Clerk account
-
Clone the repository:
git clone https://github.com/Ayo-Awe/raffle_draw_api.git
-
Install the dependencies:
cd raffle_draw_api npm install
-
Configure the environment variables:
- Rename the
.env.example
file to.env
. - Modify the
.env
file and update the necessary variables.
- Rename the
-
Start the server:
npm start
The API documentation is available here
😁 Coming soon!!!
npm start
: Starts the server.npm test
: Runs the tests. (WIP)npm run lint
: Performs linting checks. (WIP)npm run db:migrate
: Runs database migrations.npm run db:generate
: Generates database migrationsnpm run dev
: Starts the server in development mode with automatic reloading.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature
. - Make your changes and commit them:
git commit -m 'Add some feature'
. - Push the changes to your branch:
git push origin feature/your-feature
. - Submit a pull request.