“A fictional video server”!
You can manage users and conference rooms.
DDD, TDD, SOLID? Humm, is cheap ? Show me the code!
Before you begin, ensure you have met the following requirements:
- You have installed the 12.x version of NodeJS
- You have a Yarn 1.x version or NPM.
- You have created psql databases: roomeo_pg, roomeo_test
- or run docker and create databases: roomeo_pg, roomeo_test
❯ docker run --name roomeo_pg -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres
To install dependencies, run:
yarn install
yarn typeorm migration:run
To use, follow these steps:
yarn dev:server
Or run tests:
yarn test
If you want to test on insomnia, postman or similar: Import this json.
GET /users
: list all users;GET /users/:username
: user information;POST /users
{username
,password
,mobile_token
} : create and authenticate a user;POST /authenticate
{username
,password
} : authenticate user;PUT /users
{mobile_token
,password
} : update current authenticated user;DELETE /users
: deleted current authenticated user;POST /rooms
{name
,capacity
} : create and host a room;GET /rooms/:guid
: room information;POST /rooms/:guid/join
: joins room and show room information;POST /rooms/:guid/leave
: leaves room;PATCH /rooms/:guid
: change room host;GET /rooms/?username=:username
: list of rooms that the user is in;
To contribute to "roomeo_server", follow these steps:
- Fork this repository.
- Create a branch:
git checkout -b <branch_name>
. - Make your changes and commit them:
git commit -m '<commit_message>'
- Push to the original branch:
git push origin <project_name>/<location>
- Create the pull request.
Alternatively see the GitHub documentation on creating a pull request.