Skip to content

luixlacrux/sfotipy-nodejs

Repository files navigation

Sfotipy-nodejs

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

Requirements

Requires have installed on the computer:

Clone

$ git clone https://github.com/luixlacrux/sfotipy-nodejs.git

$ cd sfotipy-nodejs

Environment variables

  • 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

Build Docker Image

$ docker-compose build

Build Project

$ npm install

$ docker-compose run web npm run dist
$ docker-compose run web npm run build
# or
$ npm run dist
$ npm run build

Run Project

$ docker-compose up

Stop Project

$ docker-compose stop
# or
$ docker-compose down

Ready

ready now open a new tab browser in url http://localhost/

About

An app to listen music

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published