Skip to content

๐Ÿšด A simple REST API server used for managing bike deliveries & showing monthly/weekly stats. Project contains NestJS app as a backend (server). Database used in this project is PostgreSQL. ๐Ÿ“Œ

Notifications You must be signed in to change notification settings

jakubcieslik99/bikelivery-server

Repository files navigation

Bikelivery Server ๐Ÿšด

๐Ÿ“Œ A simple REST API server used for managing bike deliveries & showing monthly/weekly stats. Project contains NestJS app as a backend (server). Database used in this project is PostgreSQL.

GitHub package.json version (subfolder of monorepo) GitHub top language GitHub repo size

Features

  • Adding trips between two addresses with price and date
  • Editing or deleting previously added trips
  • Listing all added trips
  • Listing weekly stats containing total distance and price from current week
  • Listing monthly stats containing total distance, average distance and average price from current month splitted by days

Endpoints Documentation

๐Ÿ“š Documentation of all available endpoints can be found here: API Documentation

Run Locally

  • Clone repository
  git clone https://github.com/jakubcieslik99/bikelivery-server.git

โ„น๏ธ Instructions for running server app locally:

  • Navigate to the server directory and install dependencies
  cd bikelivery-server
  npm install
  • Run server app in development mode
  npm run docker
  npm run dev

Deployment

โ„น๏ธ Instructions for building and running server app in production

  • Transpile to production build
  npm run build
  • Run server app in production mode
  npm install --omit=dev
  npm run migration:run
  npm run start:prod

Environment Variables

โš™๏ธ To run server app, you will need to add the following environment variables to your .env file

  • DIR

  • ENV

  • POSTGRES_VER

  • REDIS_VER

  • PORT

  • API_URL

  • APP_URL

  • POSTGRES_HOST

  • POSTGRES_PORT

  • POSTGRES_DB

  • POSTGRES_USER

  • POSTGRES_PASSWORD

  • REDIS_HOST

  • REDIS_PORT

  • REDIS_PASSWORD

  • COOKIE_SESSION_SECRET

  • JWT_ACCESS_TOKEN_SECRET

  • JWT_REFRESH_TOKEN_SECRET

  • GOOGLE_DIRECTIONS_API_KEY

Languages

๐Ÿ”ค Available API messages languages: EN

Feedback

If you have any feedback, please reach out to me at โœ‰๏ธ contact@jakubcieslik.com

Authors

About

๐Ÿšด A simple REST API server used for managing bike deliveries & showing monthly/weekly stats. Project contains NestJS app as a backend (server). Database used in this project is PostgreSQL. ๐Ÿ“Œ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages