Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mcruzdev/onlytransmission-backend


https://github.com/mcruzdev/onlytransmission-backend

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Only Transmission

## Running

### Install dependencies

Execute the following command:

```sh
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:

```sh
yarn start
```

## Creating resources

### Creating an user

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

### Creating a transmission

```sh
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 }}"
}'
```