Skip to content

NemesisUA/Courses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React + Redux + role based JWT auth

Running the app

# development
$ npm run start

Backend for this project

https://github.com/NemesisUA/courses-api

Admin credentials.

These credentials provide role ADMIN.

email: admin@email.com

password: admin123

APIs from SWAGGER:

/courses/add [POST] (use ADMIN credentials)

/courses/{id} [PUT] (use ADMIN credentials)

/authors/add [POST] (use ADMIN credentials)

/courses/{id} [DELETE] (use ADMIN credentials)

/logout [DELETE]

/users/me [GET]

info

For fetching requests you should add Authorization header with user's token

Authorization: token

CourseCard component

image

CourseCard component with ADMIN role:

image

Reusable form

Admin can create or update course. in case of editing form should be prefilled

image