README
This commit is contained in:
parent
7b54d20848
commit
094dd96245
1 changed files with 36 additions and 0 deletions
36
README.md
Normal file
36
README.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
### 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)
|
||||
|
Loading…
Reference in a new issue