https://github.com/dmytrovasin/listenchartsonelectronapi
https://github.com/dmytrovasin/listenchartsonelectronapi
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dmytrovasin/listenchartsonelectronapi
- Owner: DmytroVasin
- Created: 2016-11-11T10:46:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-13T09:15:29.000Z (almost 9 years ago)
- Last Synced: 2025-01-02T01:42:34.698Z (9 months ago)
- Language: Ruby
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple API for [ListenChartsOnElectron](https://github.com/DmytroVasin/ListenChartsOnElectron)
### Heroku routes:
- [Stations](https://winamp-api.herokuapp.com/api/v1/stations)
- [Episode](https://winamp-api.herokuapp.com/api/v1/stations/7/episodes)### Commands to remember:
##### Start:
```
rackup
heroku addons:open scheduler
heroku logs --tail
```##### Clear DB on heroku:
```
heroku pg:reset DATABASE
heroku run rake db:migrate
heroku run rake db:seed
heroku pg:info
```##### Check that BD is here
```
heroku console
require './app'
Station.all
Episode.all
```##### Custom rake tasks:
```
rake db:recreate
rake update_feed ( heroku run rake update_feed )
```