No description
Find a file
2023-09-11 14:19:50 +03:00
infra first push 2023-09-11 14:13:41 +03:00
src first push 2023-09-11 14:13:41 +03:00
.env.example first push 2023-09-11 14:13:41 +03:00
.gitignore first push 2023-09-11 14:13:41 +03:00
package-lock.json first push 2023-09-11 14:13:41 +03:00
package.json first push 2023-09-11 14:13:41 +03:00
README.md README 2023-09-11 14:19:50 +03:00

Nodejs Javascript vanilla

Install dependencies

npm install

replace *.example files to .env

  • ./
  • infra/

Run Mongo container

docker compose -f "infra/docker-compose.yaml" up -d --build

Start the server

node src/server.js

Routes

  • New User - POST /register Body: { "name": "Name" "email": "Email@email.com", "password": "Password" }`

  • Login - POST /login Body: { "email": "Email@email.com", "password": "Password" }

  • Logout - POST /logout

  • Get User - GET /profile (Need to have a token cookie)