Automart
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.
- 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.
- Admin can delete a posted AD record.
- Admin can view all posted ads whether sold or unsold.
- User can reset password
- User can view all cars of a specific body type.
- User can add multiple pictures to a posted ad.
- User can flag/report a posted AD as fraudulent.
- User can view all unsold cars of a specific make (manufacturer).
- User can view all used unsold cars.
- User can view all new unsold cars.
- HTML, CSS and Javascript (UI interface),
- Node js (Server environment),
- Express (Web framework),
- Mocha, chai (Testing framework),
- Babel (Compiler),
- Eslint; Airbnb (Coding style),
- Travis CI (Continuous integration),
- Swagger (API Documentation),
- Coveralls (test coverage)
- Automart API is deployed to Heroku. Use this link https://voke-automart.herokuapp.com/
- Automart UI is deployed at https://voke1.github.io/Automart
- Automart API documentation can be found at https://voke-automart.herokuapp.com/api-docs
Automart application is developed using Node js and Express js. It is required these packages are present prior installation. To start with;
- Clone this repository:
$ git clone https://github.com/voke1/Automart.git
- Install dependencies
$ npm install
- Start server
$ npm start
To post and get data from app, use https://voke-automart.herokuapp.com/ together with the following endpoint e.g. https://voke-automart.herokuapp.com/api/v1/auth/signup
An API testing tool such as POSTMAN will be required.
Verb | Endpoint | Action |
---|---|---|
POST | /api/v1/auth/signup | Create a new user |
POST | /api/v1/auth/signin | Signin an existing user |
POST | /api/v1/car | Create a car AD |
GET | /api/v1/car | View posted Car ADs |
GET | /api/v1/car/:carId | View a specific car AD |
PATCH | /api/v1/car/:carId/price | Update a specific car AD price |
PATCH | /api/v1/car/:carId/status | Update a specific car AD status (sold) |
DELETE | /api/v1/car/:carId/ | Delete a specific car AD |
POST | /api/v1/order | Create an order |
PATCH | /api/v1/order/:orderId/price | Update price of an order |
Voke Olomu