https://github.com/maorte/udemy-app
Fullstack MERN - Udemy alike app with render deployment.
https://github.com/maorte/udemy-app
admin-user-login expressjs jwt middleware mongodb-atlas multer mvc-pattern nodejs react redux-toolkit render-deployment styled-components user-auth
Last synced: 13 days ago
JSON representation
Fullstack MERN - Udemy alike app with render deployment.
- Host: GitHub
- URL: https://github.com/maorte/udemy-app
- Owner: MaorTe
- Created: 2021-05-02T08:41:32.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-15T11:45:29.000Z (over 2 years ago)
- Last Synced: 2023-07-15T12:40:05.372Z (over 2 years ago)
- Topics: admin-user-login, expressjs, jwt, middleware, mongodb-atlas, multer, mvc-pattern, nodejs, react, redux-toolkit, render-deployment, styled-components, user-auth
- Language: JavaScript
- Homepage: https://udemy-mern.onrender.com/
- Size: 2 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Udemy-App
### MERN stack
**MongoDB, Express.js, React, Node.js**
Backend is implemented using the MVC pattern.
This is a project that simulates Udemy.
Course website where you can add a course, and for each course you can add videos, each video has the option to post comments as well.
In the project I have registration, login and Authentication, in addition there is a check if the user is an admin user or a regular user.
The difference between them is that an admin user can add new videos on the site while a regular user can only watch the videos.
For **admin permissions** login with
Email: admin@gmail.com
Password: 1234567
### Authentication
When a user signs up **BcryptJs** hashes the password and **JsonWebToken** provides a token that can
be exchanged for authenticated calls between the client and server-side. Created an Authorization
middleware using **JWT** that checks the header in each call for a valid token before executing any
request and sending a status back.
### Avatar
Used **Multer** as part of a server-side middleware that uploads images and uses them as an avatar
picture on a user's profile. Also **Sharp** which is converting large images in common formats to
smaller, web-friendly JPEG, PNG, WebP, GIF and AVIF images.
pc:



mobile:


