Giter VIP home page Giter VIP logo

bidding-api's Introduction

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

bidding-api's People

Contributors

kushagra102 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.