Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcruzdev/onlytransmission-backend
https://github.com/mcruzdev/onlytransmission-backend
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mcruzdev/onlytransmission-backend
- Owner: mcruzdev
- Created: 2019-10-15T02:19:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T06:33:54.000Z (almost 2 years ago)
- Last Synced: 2023-03-05T10:52:52.530Z (over 1 year ago)
- Language: JavaScript
- Size: 1.03 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
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 }}"
}'
```