Skip to content

Wendlereis/teams-ms

Repository files navigation

Teams

Teams is a platform to manage events and theirs teams!

Codacy Badge

Prerequisites

To run this app you'll need

  • nodejs
  • docker and docker-compose
  • yarn

Setup environment

Variables

To run the application we need to setup some environment variables.

container variables

In docker-compose.local.yaml edit the values to create your postgre database, then add the values in environment parameter of team-ms service

.env file

In root folder, create a .env file

$ cp ./.env.sample ./.env 

then, change the values

Run the app

$ docker-compose -f docker-compose.local.yaml up -d

Database

After run the teams-db container, we need to create our tables and populate them.

install sequelize command line interface

$ yarn add sequelize-cli

run sequelize migrations

$ yarn sequelize db:migrate

run sequelize seeds

$ yarn sequelize db:seed:all

Give it a try!

curl --location --request POST '{{localhost}}/auth' \
--data-raw '{
	"usernameOrEmail": "johndoe",
	"password": "johndoe"
}'

About

node.js microservice to manage event teams

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published