aawgit / onlineStore

A CRUD API and UI with MERN Stack
54 stars 59 forks source link

A CRUD API and Front end for a online store (with MERN Stack)

This project can be used as a boiler plate for building a MongoDB-Express-React-Node stack application.

Live demo

https://frozen-lake-54898.herokuapp.com/

Features:

Getting Started

Prerequisites

Installing

Available Routes

User Authentication

Method: post
Type: public
Route:
/api/auth/facebook/login
Method: post
Type: public
Route:
/api/auth/register
Method: post
Type: public
Route:
/api/auth/login
Method: get
Type: public
Route:
/api/auth/verify/<your token>
Method: get
Type: private
Route:
/api/auth/me

User Information

Method: get
Type: public
Route:
/api/users/
Method: get
Type: public
Route:
/api/users/<user ID>

Items

Method: post
Type: private
Route:
/api/items/
Method: get
Type: public
Route:
/api/items/<item ID>
Method: get
Type: public
Route:
/api/items/
Method: delete
Type: private
Route:
/api/items/<item ID>
Method: put
Type: private
Route:
/api/items/<item ID>

Running the tests

Currently No tests are available.

Deployment

To deploy on Heroku, create an account and set up environment variables. Then run $ git push heroku master Preview

Contributing

Please create an issue and start working a feature/ bug you prefer :rocket:.

License

This project is licensed under ISC.