onlytransmission-backend

Stars
0

Only Transmission

Running

Install dependencies

Execute the following command:

    yarn 

Configure the application

Create a .env file on project's root getting as base the file .env.example.

Run the application

Execute the following command:

    yarn start

Creating resources

Creating an user

curl --request POST \
  --url http://localhost:3333/auth/register \
  --header 'Content-Type: application/json' \
  --data '{
	"login": "[email protected]",
	"password": "12345678"
}'

Creating a transmission

curl --request POST \
  --url http://localhost:3333/transmissions \
  --header 'Content-Type: application/json' \
  --data '{
	"channelId": "${{ channelId }}",
	"sponsor": "OnlyTransmission",
	"state": "RJ",
	"city": "Rio de Janeio",
	"status": "OFF",
	"channelName": "${{ channelName }}"
}'