Skip to content

This API manages a Line (queue) of people. 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).

License

Notifications You must be signed in to change notification settings

isquicha/users-line-rpc-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Users Line RPC API

Description

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).

Documentation

Docs can be found at Postman Documenter.

Dependencies

Project specific dependencies are on package.json and package-lock.json. See installation.

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 or
    • yarn
  • Run at least once the watch-ts script, to create the /dist directory with TypeScript transformed JavaScript files
    • yarn run watch-ts
  • Exit watch-ts script
    • press ctrl c

Usage

Run server
node /dist/server.js

Run server in development mode
yarn run watch

Run tests
yarn run test

Authors

André Vicente

Motivations

This project was done as a challenge for an internship vacancy as a back-end developer.

Status

The project is under development, but without guarantees of new updates.

Todo

  • 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

License

MIT

About

This API manages a Line (queue) of people. 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).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published