Skip to content

wegorz13/Web-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sklepik Web Store

Sklepik is a React app for online shopping with Express server made in Typescript and with SQLite database. JSONWebToken was used for authentication and authorization.

Login and registration

alt text

alt text There is data validation. If user is correctly registered, his password is hashed with Bcrypt and saved in database with email and default user role code.

Authentication

After login, access token and refresh token are created with JSON Web Token.
Refresh token is saved in database, and access token is kept in state in React using Context.
On Express side there is middleware for verifying token and role.

Main page

alt text You can browse all products by name or category.

alt text

alt text You can delete your own opinions, admin can delete all.

alt text Only after you've bought the product you can add an opinion.

Orders

Cart

alt text

Order details

alt text Order data validation.

Order history

alt text

About

React app with Express server designed for online shopping as a project for Introduction to Web Applications course at AGH UST.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors