Giter Site home page Giter Site logo

automart's Introduction

automart

Build Status Coverage Status

Auto Mart is an online marketplace for automobiles of diverse makes, model or body type.

Deployed on heroku

https://olaoluwa-automart.herokuapp.com

Base URL

https://olaoluwa-automart.herokuapp.com/api/v1

Branch Deployed on heroku for autograder

  • ch-autogradr-167307331

Documentation on Swagger

https://olaoluwa-automart.herokuapp.com/api-docs

Endpoints for Available for autograder on Heroku

User sign up

  • POST: /auth/signup User sign in
  • POST: /auth/signin User(Seller) create a car ad (Authentication Needed)
  • POST: /car User(Seller) edit car ad status (Authentication Needed)
  • PATCH: /car/:car_id/status User(Seller) edit car ad price (Authentication Needed)
  • PATCH: /car/:car_id/price User can get all car ads (Authentication Needed)
  • GET: /car User can get a specific car ad (Authentication Needed)
  • GET: /car/:car_id User(Buyer) can create a purchase order (Authentication Needed)
  • POST: /order User(Buyer) can edit a purchase order (Authentication Needed)
  • PATCH: /order/:order_id/price User(Admin) can delete a car ad (Authentication and Authorization Needed)
  • DELETE: /car/:car_id

Features

  • User can sign up
  • User can sign in
  • User(seller) can post a car sale advertisement
  • User(buyer) can make a purchase order
  • User (buyer) can update the price of his/her purchase order
  • User (seller) can mark his/her posted AD as sold.
  • User (seller) can update the price of his/her posted AD.
  • User can view a specific car.
  • User can view all unsold cars.
  • User can view all unsold cars within a price range.
  • User can view all cars of a specific body type.
  • Admin can delete a posted AD record. Admin can view all posted ads whether sold or unsold.

Technologies used

This application makes use of latest technologies and is developed with Nodejs.

  • Express
  • Javascript (ES6)
  • Mocha and Chai for testing
  • ESlint (using airbnb style guide)
  • Babel
  • Swagger for documentation

Installation

git clone https://github.com/ola357/automart.git
  • Open in favourite editor
  • In the project directory, run
	npm install
  • Create a postgres database and run the models
  • Set up .env variables
  • Testing, run
	npm test
  • Run: npm start to lauch app

Contributing

  • Fork project and raise a Pull Request

automart's People

Contributors

ola357 avatar

Watchers

James Cloos 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.