An open API service indexing awesome lists of open source software.

https://github.com/futuresea-dev/mern-seller-platform

MERN simiple site
https://github.com/futuresea-dev/mern-seller-platform

css express html javascript nodejs react typescript

Last synced: 2 months ago
JSON representation

MERN simiple site

Awesome Lists containing this project

README

          

# Authorization overview for Sell and Resell 🎉

## 🔮 This project uses

- ⚛️ [React](https://reactjs.org/)
- 🛡️ [Node](https://nodejs.org/en/)

## 📖 How to run

- 🔽 Create MongoDB database and name "test"

- 🚪 Enter the frontend directory

cd frontend

- 🧑‍💻 Install the dependencies

npm i

- 🚪 Enter the backend directory

cd backend

- 🧑‍💻 Install the dependencies

npm i

- 🚀 Start the project with dev mode in backend directory

npm run dev

# Test Web UI

Register in site
When user regist in this site, should select authorization

Login as user role

Then login as admin role

There are 3 pages:

1. Seller - User and Admin can access this page.

2. Reseller - Only Admin can access this page.

3. Users - Only Admin can access this page.

If user with a user role access Reseller and Users pages, the 403 page will occure.