Skip to content

Stolen Bike Cases backend built using nodejs, typescript, postgresql,jest

Notifications You must be signed in to change notification settings

yogeshkathayat/bike-stolen-app-nodejs-typescript

Repository files navigation

Stolen Bike Cases - (Node.js)

JOIN Stolen Bike Cases

Context

Stolen bikes are a typical problem in Berlin. The Police want to be more efficient in resolving stolen bike cases. They decided to build a software that can automate their processes — the software that you're going to develop.

Requirements

  • Bike owners can report a stolen bike.
  • A bike can have multiple characteristics: license number, color, type, full name of the owner, date, and description of the theft.
  • Police have multiple departments that are responsible for stolen bikes.
  • A department can have some amount of police officers who can work on stolen bike cases.
  • The Police can scale their number of departments, and can increase the number of police officers per department.
  • Each police officer should be able to search bikes by different characteristics in a database and see which department is responsible for a stolen bike case.
  • New stolen bike cases should be automatically assigned to any free police officer in any department.
  • A police officer can only handle one stolen bike case at a time.
  • When the Police find a bike, the case is marked as resolved and the responsible police officer becomes available to take a new stolen bike case.
  • The system should be able to assign unassigned stolen bike cases automatically when a police officer becomes available.

Built With

  • Node.js
  • Express
  • Sequelize(Postgresql)
  • Jest with Supertest for unit testing and coverage
  • Typescript
  • Hosted with Heroku

Dependency Installation

$ yarn 

Running the app

# build app
$ yarn build

# start app
$ yarn start

Testing the app

# unit tests with coverage
$ yarn test

Deployment

Bike-Stolen-Case API deployed to Heroku: https://stoken-bike-case.herokuapp.com/

Api Docs

Api Docs for Bike-Stolen-Case App: https://stoken-bike-case.herokuapp.com/api/v1/docs/

About

Stolen Bike Cases backend built using nodejs, typescript, postgresql,jest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published