Make demo-ready
- Add README.md - Add DB test data - Add port forward to docker-compose to allow the app to be accessed on Macsmaster
parent
18ff4c9d1f
commit
567b2bba27
|
@ -0,0 +1,19 @@
|
|||
# Learn Request Queue
|
||||
An app to manage requests for music performance streamers to learn new songs.
|
||||
|
||||
## Bootstrapping a Development Environment
|
||||
|
||||
1. Populate .env with:
|
||||
|
||||
URL_PREFIX=http://localhost
|
||||
|
||||
PGHOST=db
|
||||
PGDATABASE=postgres
|
||||
PGUSER=postgres
|
||||
|
||||
TWITCH_CLIENTID=Client ID from dev.twitch.tv
|
||||
TWITCH_SECRET=Client Secret from dev.twitch.tv
|
||||
SESSION_SECRET=Randomly generated secret
|
||||
|
||||
2. `docker-compose up` (optionally with `-d`)
|
||||
3. `docker exec -i learn-request-queue-db /usr/bin/psql -U postgres < db/testdata.sql`
|
|
@ -0,0 +1,5 @@
|
|||
INSERT INTO requests (url,requester,score,state) VALUES
|
||||
('https://www.youtube.com/watch?v=dQw4w9WgXcQ','virtualdxs',0,'Rejected'),
|
||||
('https://www.youtube.com/watch?v=C5oeWHngDS4','virtualdxs',500,'Requested'),
|
||||
('https://www.youtube.com/watch?v=vXaJGBLRA_o','virtualdxs',0,'Requested');
|
||||
|
|
@ -7,6 +7,8 @@ services:
|
|||
- db
|
||||
volumes:
|
||||
- .:/home/app
|
||||
ports:
|
||||
- "80:3000"
|
||||
env_file: .env
|
||||
db:
|
||||
container_name: learn-request-queue-db
|
||||
|
|
Loading…
Reference in New Issue