GithubHelp home page GithubHelp logo

renanrudney / roomeo_server Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 343 KB

A fictional 'video server' to manage conference rooms!

JavaScript 9.11% TypeScript 90.89%
clean-architecture dto infra node node-js nodejs repositories services tdd tdd-javascript typeorm typescript

roomeo_server's Introduction

Unsplash black shoulder-mount

Room + Video = Roomeo

“A fictional video server”!

You can manage users and conference rooms.

DDD, TDD, SOLID? Humm, is cheap ? Show me the code!

GitHub repo size GitHub contributors

Prerequisites

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

Installing Project

To install dependencies, run:

yarn install
yarn typeorm migration:run

Using Project

To use, follow these steps:

yarn dev:server

Or run tests:

yarn test

Aplication Routes

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;

Contributing

To contribute to "roomeo_server", follow these steps:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'
  4. Push to the original branch: git push origin <project_name>/<location>
  5. Create the pull request.

Alternatively see the GitHub documentation on creating a pull request.

roomeo_server's People

Contributors

renanrudney avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.