Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

renatocfrancisco/to-do-mern-api

Repository files navigation

to-do-mern-api

GitHub JavaScript Style Guide GitHub code size in bytes MongoDB Express.js NodeJS Jest

Express API for to-do-mern-app

Download zip file, get the latest release or execute:

git clone https://github.com/renatocfrancisco/to-do-mern-api

commands

npm i to install dependencies
npm start to start the server
npm run dev to start the server with nodemon
npm run format to format the code using standard-js
npm run test to run the tests using jest and axios
Need to create a .env file for the test and secret environment variables.

documents

user

{
  "username": "String",
  "password": "String",
  "admin": Boolean
}

task

{
  "user": ObjectId,
  "task": "String",
  "priority": "String",
  "status": "String"
}