Code Monkey home page Code Monkey logo

car-value's Introduction

Car Value Estimation API

This API allows signed-in users to get an estimation of a car value based on their location, car's make, model, year and mileage. The estimation is calculated from previous reports added by the users after being approved by the admins.

Estimation calculation: the application calculates the average price of all approved cars within +/- 5 langtitude and latitude degrees and where the model year of the car is +/- 3 years.

Local Setup:

  1. git clone https://github.com/mmaksi/car-value.git
  2. cd car-value
  3. npm install
  4. npm run typeorm:migration:generate to generate a migration file for the database.
  5. npm run typeorm:migration:run to generate a tables structure for the database.

App Features:

๐ŸŸฃ Two roles: users and admins; users can add and get reports, and admins can accept the added reports.

๐ŸŸฃ Sign-up/Sign-in using JWT and cookies.

๐ŸŸฃ Custom middleware to attach the signed-in user to the Request object.

๐ŸŸฃ Custom Serialize(dto) interceptor that works with any DTO to add serialization logic.

๐ŸŸฃ Custom decorator to return the signed-in user that can be used anywhere in the application.

๐Ÿ› ๏ธ Tech Stack:

NestJS, Express.js, TypeScript, TypeORM, SQLite, JWT & Cookies.

Report Module

Diagram URL: https://i.ibb.co/nLSm7Tj/Users-Module.png project-architecture

Auth Module

Diagram URL: https://i.ibb.co/m5gZN9S/Reports-Module.png project-architecture

car-value's People

Contributors

mmaksi 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.