Skip to content

vovoka-path/todo-app-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

todo-app-api

Created for BeeGee.

Stack

  • Node.js
  • Express
  • MySQL
  • Sequelize
  • jsonwebtoken
  • bcrypt

Frontend (Todo app) for this API

REST endpoints

Todos

Get all: GET /api/todos
Get by id: GET /api/todos/:id
Create: POST /api/todos

Body: { userName, email, title, isDone, isEdited }

Update: PUT /api/todos/:id

Body: { id, title, isDone, isEdited }

Delete: DELETE /api/todos/:id

Users

Sign up: POST /api/users/signup

Body: { login, password }

Sign in: POST /api/users/signin

Body: { login, password }

Sign out: POST /api/users/signout
Check authorization: POST /api/users/checkauth
Refresh tokens/authorization: GET /api/users/refresh

Install

npm i

Available Scripts

npm run develop

You will also see logs in the console.

Enviroment variables

CLIENT_URL="https://todo-app-api-production.up.railway.app/" PORT=8080 DATABASE_NAME="DB name" DATABASE_HOST="DB host" DATABASE_USERNAME="DB username" DATABASE_PASSWORD="DB password" DATABASE_DIALECT="mysql" SALT_ROUNDS=5 ACCESS_SECRET_KEY="some-words" REFRESH_SECRET_KEY="some-another-words"

Developer

Vladimir Polansky

Contact me:

LinkedIn Telegram Discord Twitter Gmail

About

API for '/todo-app' (see my github). Use Node, Express, MySQL, Sequelize.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published