College-Application
To install development dependencies
npm install --dev
To install development dependencies\
npm install
To run the project locally:
npm run build
to recompile the project using typesciptnpm start
to recompile and start the servernpm dev
to start server using nodemon
To test it locally go to http://localhost:8080/
-
To GET the list of CP Contests: Make a GET request to
http://localhost:8080/cp_reminder/
-
To Access the Notice Board API
Go tohttps://backend-clg-app.herokuapp.com/notice_board/
Notice Message Schema:- Message(Required)
- Status(Required)
* To POST a message, make a POST request to ```https://backend-clg-app.herokuapp.com/notice_board/``` * To GET all messages, make a GET request to ```https://backend-clg-app.herokuapp.com/notice_board/``` * To GET a single message, make a GET request, pass the id as the parameter, for example ```https://backend-clg-app.herokuapp.com/notice_board/?id=TheMessageID``` * To UPDATE a single message, make a PATCH request to ```https://backend-clg-app.herokuapp.com/notice_board/TheMessageID``` * To DELETE a single message, make a DELETE request to ```https://backend-clg-app.herokuapp.com/notice_board/TheMessageID```
- Resources Schema:
- Url(Required)
- Subject_Code(Optional)
- Message(Required)
- Resources_Type( Should be either Video, Notes or Ebook or Course )(Required)
-
To Access the Video Resources API Go to
https://backend-clg-app.herokuapp.com/resources/videos/
- To POST a video, make a POST request to
https://backend-clg-app.herokuapp.com/admin/resources/videos/
- To GET all videos, make a GET request to
https://backend-clg-app.herokuapp.com/resources/videos/
- To GET a single video, make a GET request, pass the id as the parameter, for example
https://backend-clg-app.herokuapp.com/resources/videos/?id=TheVideoID
- To UPDATE a single video, make a PATCH request to
https://backend-clg-app.herokuapp.com/admin/resources/videos/TheVideoID
- To DELETE a single video, make a DELETE request to
https://backend-clg-app.herokuapp.com/admin/resources/videos/TheVideoID
- To POST a video, make a POST request to
-
To Access the Notes Resources API Go to
https://backend-clg-app.herokuapp.com/resources/notes/
- To POST a notes resource, make a POST request to
https://backend-clg-app.herokuapp.com/admin/resources/notes/
- To GET all notes, make a GET request to
https://backend-clg-app.herokuapp.com/resources/notes/
- To GET a single notes resource, make a GET request, pass the id as the parameter, for example
https://backend-clg-app.herokuapp.com/resources/notes/?id=TheNotesID
- To UPDATE a single notes resource, make a PATCH request to
https://backend-clg-app.herokuapp.com/admin/resources/notes/TheNotesID
- To DELETE a single notes resource, make a DELETE request to
https://backend-clg-app.herokuapp.com/admin/resources/notes/TheNotesID
- To POST a notes resource, make a POST request to
-
To Access the Ebooks Resources API Go to
https://backend-clg-app.herokuapp.com/resources/ebooks/
- To POST an ebooks resource, make a POST request to
https://backend-clg-app.herokuapp.com/admin/resources/ebook/
- To GET all ebooks, make a GET request to
https://backend-clg-app.herokuapp.com/resources/ebooks/
- To GET a single ebook resource, make a GET request, pass the id as the parameter, for example
https://backend-clg-app.herokuapp.com/resources/ebooks/?id=TheEbooksID
- To UPDATE a single ebooks resource, make a PATCH request to
https://backend-clg-app.herokuapp.com/admin/resources/ebooks/TheEbooksID
- To DELETE a single ebooks resource, make a DELETE request to
https://backend-clg-app.herokuapp.com/admin/resources/ebooks/TheEbooksID
- To POST an ebooks resource, make a POST request to
-
To Access the Courses Resources API Go to
https://backend-clg-app.herokuapp.com/resources/courses/
- To POST an ebooks resource, make a POST request to
https://backend-clg-app.herokuapp.com/admin/resources/courses/
- To GET all ebooks, make a GET request to
https://backend-clg-app.herokuapp.com/resources/courses/
- To GET a single ebook resource, make a GET request, pass the id as the parameter, for example
https://backend-clg-app.herokuapp.com/resources/courses/?id=TheCourseID
- To UPDATE a single ebooks resource, make a PATCH request to
https://backend-clg-app.herokuapp.com/admin/resources/courses/TheCourseID
- To DELETE a single ebooks resource, make a DELETE request to
https://backend-clg-app.herokuapp.com/admin/resources/courses/TheCourseID