Skip to content

Kushagra102/bidding-api

Repository files navigation

Bidding Platform API

Table of Contents

Documentation

Postman Documentation

Completion as per provided docs

  1. All routes/endpoints completed
  2. Real time notification system complete
  3. JWT, RBAC, Rate limiter, XSS, ValidateZOD Middleware
  4. Validation and Error Handling Complete
  5. Image Upload (Multer), Search and Filter, Pagination Complete
  6. Project Structure Organized
  7. Eslint Linter, Logging via Winston, Prettier
  8. Reset Password and Otp Via Nodemailer
  9. Docker for Containerization
  10. Documentation on Postman, Deployment on EC2

Steps to Run Locally

  1. Clone the repository

    git clone https://github.com/Kushagra102/bidding-api.git
    cd bidding-api
  2. Install dependencies

    npm install
  3. Fill in the environment variables in a .env file

    DATABASE_URL="POSTGRESQL_DATABASE_URL"
    JWT_SECRET="your_jwt_secret"
    PORT=3000
    MAILER_EMAIL_ID="YOUR_EMAIL_ID"
    MAILER_PASSWORD="YOUR_EMAIL_APP_PASSWORD"
  4. Generate Prisma client

    npx prisma generate
  5. Start the development server

    npm run dev

Steps for local building

npm run build
npm run start

Steps to run via docker

docker build --build-arg PORT=3000 --build-arg DATABASE_URL="postgresql://postgres:password@localhost:5432/db?schema=public" --build-arg JWT_SECRET="your_jwt_secret" --build-arg MAILER_EMAIL_ID="YOUR_EMAIL_ID" --build-arg MAILER_PASSWORD="YOUR_EMAIL_APP_PASSWORD" -t server .
docker run -p 3000:3000 server

Linting

Run the following command to lint your code:

npm run lint

Formatting

Run the following command to format your code:

npm run format

About

Documentation

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors