Code Monkey home page Code Monkey logo

auto-mart's Introduction

Auto-Mart

Build Status Coverage Status Maintainability

DESCRIPTION

Auto Mart is an online marketplace for automobiles of diverse makes, model or body type. With Auto Mart, users can sell their cars or buy from trusted dealerships or private sellers.

Link to Auto-Mart on Github Pages

Auto-Mart

Link to Auto-Mart on Heroku

Auto-Mart

Routes captured by Auto-Mart

REQUEST ROUTE FUNCTIONALITY
GET /api/v1/car Fetches all Cars sold and unsold
POST /api/v1/car Creates a car sale Ad
PATCH /api/v1/car/:car-id/status Updates a car's status
PATCH /api/v1/car/:car-id/price Updates a car's price
GET /api/v1/car/:car-id Fetches a specific car Ad
GET /api/v1/car?status=available Fetches all unsold car Ads
GET /api/v1/car?status=available&min_price=XValue&max_price=XValue Fetches unsold cars within a price range
GET /api/v1/car?status=available&state=new Fetches unsold new cars
GET /api/v1/car?status=available&state=used Fetches unsold used cars
GET /api/v1/car?status=available&manufacturer=XXXValue Fetches all unsold cars with specified manufacturer
GET /api/v1/car?status=available&type=XXXValue Fetches unsold cars with specified body type
DELETE /api/v1/car/:car-id Deletes a Car Ad
POST /api/v1/auth/signup Creates a new User
POST /api/v1/auth/signin Signs the user in
POST /api/v1/order Creates a purchase order
PATCH /api/v1/order/:order-id/price Updates purchase offered price
POST /api/v1/flag Flags a posted car Ad as fraudulent

For more details about endpoints check the documentation here

BUIT WITH

  • Javascript
  • NodeJs
  • ExpressJs

TESTING TOOLS

  • Mocha
  • Chai
  • nyc

HOW TO RUN THE APPLICATION

SETING UP THE ENVIRONMENT

  1. Clone this repository to your local PC

    git clone https://github.com/Malaba6/Auto-Mart.git here

  2. You need to have Nodejs and npm installed

    $ node --version To check if node is intalled. If not installed, download here

    $ npm --version To check if the node package manager is istalled

  3. Then

    $ npm install To install all the application dependencies

  4. And make sure postgresql is install in your system

    • Make sure database name is automart
    • Test db is test_automart
    • User name is postgres

RUN THE APP

  1. To run the app

    npm start

  2. To run tests

    npm test

Author

Malaba Eric

auto-mart's People

Contributors

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