npm run dev # Start in development mode (with Nodemon)
npm start # Start in production mode (with Node.js)
set up with npm install express cors
curl -X POST http://localhost:5000/api/users -H "Content-Type: application/json" -d '{"name": "Gokame Man", "email": "[email protected]"}'
curl -X GET http://localhost:5000/api/users
curl -X GET http://localhost:5000/api/users/1
curl -X PUT http://localhost:5000/api/users/1 -H "Content-Type: application/json" -d '{"name": "Some Updated Name", "email": "[email protected]"}'
curl -X DELETE http://localhost:5000/api/users/1
curl -X POST http://localhost:5000/api/auth/register
-H "Content-Type: application/json"
-d '{"name": "John Doe", "email": "[email protected]", "password": "securepass"}'
curl -X POST http://localhost:5000/api/auth/login
-H "Content-Type: application/json"
-d '{"email": "[email protected]", "password": "securepass"}'