Skip to content

benslamahassen/toDoApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toDoApp

A lightweight RestApi built with Express, Typscript and Mongoose.

Notes

I don't usually push node_modules, /config or .env but for the sake of this project to be easilly tested I did.

Prerequisites

You need to have MongoDB installed and mongod service up and runing. You can change the authentication data in the .env file for the MongoDB.

user='YOUR_USERNAME'
pass='YOUR_PASSWORD'
dbName='toDoApp' // DB NAME

Endpoints

The server runs on port 3000. You can change it in /lib/server.ts. Also it runs over HTTPS so use the link : https://localhost:3000

  • Fetch all Tasks :
    • GET /task
  • Fetch one Task by its id :
    • GET /task/:id
  • Add one Task :
    • POST /task
    • body :
title: String, required
description: String, required
done: Boolean
owner: String
created_date: Date, default: Date.now
  • Update Task :
    • PUT /task/:id
    • body :
title: String
description: String
done: Boolean
owner: String
  • Delete Task :
    • DELETE /task/:id

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published