Simple http-server with a user API
- Find all the TODO comments and enrich this app
- Important! Make your repository on GitHub or GitLab PRIVATE
- If you have question, ask me by email sergei@adaltas.com
- Uses default configuration with a path of the file storage
- Start http-server
- Create a user
- Get a user information
git clone ...
npm install
npm start
Go to http://localhost:3000
- POST Create user:
http://localhost:3000/user/
Body parameters:
{
username: 'toto',
firstname: 'toto-firstname',
lastname: 'toto-lastname'
}
- GET user by username
http://localhost:3000/user/sergkudinov
Run tests:
npm test
Sergei Kudinov
sergei@adaltas.com