https://github.com/dyslevium/pcon-nodejs-todo
A simple notes taking app made with nodeJs, mysql and react. This app does not contain any user authentication. This was made to learn the basics of making a server and its interaction with a SQL database.
https://github.com/dyslevium/pcon-nodejs-todo
Last synced: 3 months ago
JSON representation
A simple notes taking app made with nodeJs, mysql and react. This app does not contain any user authentication. This was made to learn the basics of making a server and its interaction with a SQL database.
- Host: GitHub
- URL: https://github.com/dyslevium/pcon-nodejs-todo
- Owner: DYSLEVIUM
- Created: 2021-01-20T12:10:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-03T14:02:34.000Z (about 4 years ago)
- Last Synced: 2025-01-20T19:26:47.320Z (4 months ago)
- Language: TypeScript
- Homepage: https://pcon-nodejs-todo.herokuapp.com
- Size: 796 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pcon-Nodejs-Todo
This project was made to learn to create a nodejs server with different endpoints connecting to a database. This is a simple todo app with frontend made in React.
The server is hosted at https://pcon-nodejs-todo.herokuapp.com.The base url for the rest api is 'https://pcon-nodejs-todo.herokuapp.com/api'
# Endpoints
1. '/addNote' : Adds a note to the database (request method : 'POST')
E.g. The request body looks like
body {
"publicId":"192.168.0.1",
"title": "This is the title of the note 2",
"description": "This is the description of the note"
}2. '/getNotes' : gets all the notes in the database (request method : 'GET')
3. '/getNote/:noteId' : gets the note with the associated id (request method : 'GET')
4. '/updateNote/:noteId' : updates the note with the associated id (request method : 'POST')
E.g. The request body looks like
body {
"title": "This is the new title of the note 2",
"description": "This is the new description of the note"
}5. '/deleteNote/:noteId' : deletes the note with the associated id (request method : 'POST')