Skip to content

E.learning backend repository, a mobile application focused on education that offers courses.

Notifications You must be signed in to change notification settings

allyfx/e.learning-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📖 e.learning backend

E.learning's backend repository, a mobile application focused on education that offers courses.

💡What is it?

E.learning is one of the rewards of the GoStack bootcamp, where the student gets five projects to produce alone. This app provides courses of everything, where the user can watch and bookmark courses.

❓How to use?

  • Open the project in your editor.
  • Run yarn dev to boot the server.
  • Run a postgres database with docker.
  • Configure the database in an ormconfig.json file.
  • Open Insomnia to use the routes, or use the routes in your frontend.

✒Routes

All routes are initialized with the baseurl of the backend.

Lessons

  • /lesson/list/:id -> List all lessons in database. Submit the course id on params.
  • /lesson/create -> To create a lesson. Submit a json with name, duration, count, course_id, description, video_id. (Count is the lesson count, cannot be duplicate) Must be authenticated.

Courses

  • /course/list -> List all courses in database.
  • /course/create -> To create a course. Submit a multipart form with name, image - image must be a file. Must be authenticated.
  • /course/update/:id -> To update a course. Submit a multipart form with name, image - image must be a file - and submit the course id in the params. Must be authenticated.

User

  • /user/create -> To create an user. Submit a json with name, email, password.
  • /user/authenticate -> To authenticate. Submit a json with email, password.

🚧Built With

  • Node.js
  • Typescript

📂Project

About

E.learning backend repository, a mobile application focused on education that offers courses.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published