by @luixlacrux and @_moisesdelacruz
An web app to listen to music this is a improved version of Sfotipy made in the course of professional frontend in Platzi
$ git clone https://github.com/luixlacrux/sfotipy-nodejs.git
$ cd sfotipy-nodejs
- Create a .env file in the project root directory with the next content:
# database postgresql
POSTGRES_DB=<db_name>
POSTGRES_USER=<db_user>
POSTGRES_PASSWORD=<db_password>
# Facebook auth
F_CLIENT=<facebook_key>
F_SECRET=<facebook_secret>
# Twitter auth
T_CLIENT=<twitter_key>
T_SECRET=<twitter_secret>
# Sfotipy auth
S_CLIENT=<spotify_key>
S_SECRET=<spotify_secret>
# Server port
PORT=80
$ docker-compose build
$ npm install
$ docker-compose run web npm run dist
$ docker-compose run web npm run build
# or
$ npm run dist
$ npm run build
$ docker-compose up
$ docker-compose stop
# or
$ docker-compose down
ready now open a new tab browser in url http://localhost/