This website is divided into two sections. One of the section is used to cater to the needs of the buyer and the other section is to cater to the needs of a person wanting to sell his product.
The first step is to clone this flex-shop
repository by opening your git bash and typing:
git clone https://github.com/coder284/flex-shop.git
This will create a copy of all the files in this repository on your computer. To install the dependencies you will have to type:
npm install
Firstly the user will have to sign-up
to the website.
The sign-up
page looks like this:
After signing up the user will be directed to the home page of the website:
Now the user may choose to click on the buy now
button or the sell now
button depending on his needs:
If the user clicks on buy now
button then he is directed to the buyer homepage:
On choosing the category of products which the user wants to buy, the user will be directed to the page of that category:
On choosing the products he wants to buy, the user is directed to the cart page:
If the user clicks Sell now
button then he is directed to the seller homepage:
After this, the user is directed to the details page in which he has to enter all the details of the product which he is selling:
After this the user will be directed to the address page:
After this the user will be directed to the payment page:
There is also an about us page:
And also a contact us page:
and many more pages...
The website has an authentication mechanism wherein new users have to create an account and existing users have to login. On performing this the user will be given a token to access further pages.
For doing this, we require some npm modules like:
-> express
-> cors Cross-Origin Resource Sharing
-> Jwt (Jsonwebtoken)
-> bcrypt
-> postgresql