https://github.com/somnathkar000/tambola-ticket-create-api
The Tambola Ticket Create API is a project developed by the user that allows users to create and fetch Tambola tickets. Tambola, also known as Bingo or Housie, is a popular numbers game.
https://github.com/somnathkar000/tambola-ticket-create-api
becrypt jsonwebtoken mongodb nodejs
Last synced: 28 days ago
JSON representation
The Tambola Ticket Create API is a project developed by the user that allows users to create and fetch Tambola tickets. Tambola, also known as Bingo or Housie, is a popular numbers game.
- Host: GitHub
- URL: https://github.com/somnathkar000/tambola-ticket-create-api
- Owner: SomnathKar000
- Created: 2023-06-01T14:58:50.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-13T12:17:01.000Z (about 3 years ago)
- Last Synced: 2025-10-25T23:09:55.254Z (8 months ago)
- Topics: becrypt, jsonwebtoken, mongodb, nodejs
- Language: JavaScript
- Homepage: https://tambola-ticket.vercel.app
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tambola-Ticket-Create-API Project
The Tambola Ticket Create API is a project developed by the user that allows users to create and fetch Tambola tickets. Tambola, also known as Bingo or Housie, is a popular numbers game.
## Installation
1. Clone the repository: `git clone https://github.com/SomnathKar000/Tambola-Ticket-Create-API`
2. Install the dependencies: `npm install`
3. Create an `.env` file in the root directory of the project.
4. Define the following environment variables in the `.env` file:
- `MONGODB_URL=`: The MongoDB URL for connecting to the database.
- `JWT_SECRET_KEY=`: The secret key used for authentication.
## Usage
- Run the application: `npm start`
## API Details
### Login API
- URL: http://localhost:5000/api/v1/user/login
- Method: POST
- Payload: Include your email and password in the request body for authentication.
### Tambola Ticket Create API
- URL: http://localhost:5000/api/v1/ticket/create
- Method: POST
- Headers: Include the "auth-token" header with the token obtained from the Login API.
### Tambola Ticket Fetch API
- URL: http://localhost:5000/api/v1/ticket
- Method: GET
- Headers: Include the "auth-token" header with the token obtained from the Login API.
Please ensure that you have set the appropriate environment variables and configured your API testing application to send requests to the specified URLs.
Remember to replace `` with the actual MongoDB URL and `` with your desired secret key.
Feel free to add more sections and customize the content as per the needs of your project.