Skip to content

Backend

Dominique Hosea edited this page May 16, 2024 · 4 revisions

Cron Jobs

Scheduled Jobs

Backup Database Job

MongoDB’s inbuilt utility, mongodump, to generate a backup of the entire database.

The backup script is set to run weekly at 00:00 on Sunday.

Business Logic

Enpoints

Test enpoints on test server:

Simply visit Test Server

Test endpoints locally by:

/* Change directories into Swagger Server */

cd swagger-server

/* Run Server */

npm start

/* The server will be live on http://localhost:8080/docs */

After completing the instructions to run locally click here: Local Server

  • /articles
  • /articles/:id
  • /upload
  • /destory
  • /register
  • /login
  • /refresh_token

Testing

This project uses Jest for testing. Visit https://jestjs.io for details.

To execute tests:

npm test
Clone this wiki locally