This API manages a Line (queue) of people.
It allows user creation, adding a user to the Line, querying the Line, filtering users in the Line, querying a user's position in the Line and removing a user from the beginning of the Line.
There is no persistence of data in files on the server (users and the Line are saved in volatile memory).
Docs can be found at Postman Documenter.
Project specific dependencies are on package.json
and package-lock.json
. See installation.
Installation steps:
- Open the Terminal or CMD
- Git clone this repository (you will need git client installed)
git clone https://github.com/isquicha/users-line-rpc-api
- Enter in downloaded folder (by default the flolder name is users-line-rpc-api)
cd users-line-rpc-api
- Run yarn install
yarn install
oryarn
- Run at least once the watch-ts script, to create the
/dist
directory with TypeScript transformed JavaScript filesyarn run watch-ts
- Exit watch-ts script
- press
ctrl c
- press
Run server
node /dist/server.js
Run server in development mode
yarn run watch
Run tests
yarn run test
André Vicente
This project was done as a challenge for an internship vacancy as a back-end developer.
The project is under development, but without guarantees of new updates.
- Review English texts, such as test messages, documentation and API return messages (English is not my mother tongue, so there may be some mistakes).
- Remove or protect
/listUsers
endpoint. - Separate tests in more than one file.
- Add multiple Line functionality