@metal-family/server
v0.0.0
Published
The server template
Downloads
7
Readme
Effect Monorepo Template - Server Package
Run the dev script in @template/server package to start the server
The server will start on http://localhost:3000 by default.
TODOs API Endpoints
The server provides few endpoints
Create a new TODO
curl -X POST http://localhost:3000/todos \
-H "Content-Type: application/json" \
-d '{"text": "my first effect todo"}'List all TODOs
curl -X GET http://localhost:3000/todosGet a specific TODO by ID
curl -X GET http://localhost:3000/todos/0Mark TODO completed
curl -X PATCH http://localhost:3000/todos/0Delete a specific TODO by ID
curl -X DELETE http://localhost:3000/todos/0