- Clona il progetto
- Eseguire il codice in development con nodemon
curl -X GET -H "Content-Type: application/json" http://localhost:3000/liste/
curl -X PATCH -H "Content-Type: application/json" -d "{\"nome\": \"sia\", \"data\": \"01-07-2023\" }" http://localhost:3000/liste/1
curl -X POST -H "Content-Type: application/json" -d "{\"nome\": \"sia\", \"data\": \"01-07-2023\" }" http://localhost:3000/liste/
curl -X DELETE -H "Content-Type: application/json" http://localhost:3000/liste/
curl -X GET -H "Authorization: Bearer IL_TUO_JWT" http://localhost:3000/liste/
curl -X PATCH -H "Authorization: Bearer IL_TUO_JWT" -d "{\"nome\": \"sia\", \"data\": \"01-07-2023\" }" http://localhost:3000/liste/1
curl -X POST -H "Authorization: Bearer IL_TUO_JWT" -d "{\"nome\": \"sia\", \"data\": \"01-07-2023\" }" http://localhost:3000/liste/
curl -X DELETE -H "Authorization: Bearer IL_TUO_JWT" http://localhost:3000/liste/1
- Esegui il codice di seguito per creare un bridge interno a docker
docker network create -d bridge --subnet=172.21.0.0/16 --gateway=172.21.0.1 json_server_bridge
- Scarica il file docker-compose.yml ed esegui questo codice nel terminale