Or use Volta (preferred)
$ git clone https://github.com/olyop/musicloud.git
$ cd musicloud
$ volta install
$ npm i
$ cp .env.template .env
$ vim .env
Setup a PostgreSQL database and AWS S3 bucket and fill these out with you're own details:
AWS_REGION=""
AWS_ACCESS_KEY_ID=""
AWS_ACCESS_KEY_SECRET=""
POSTGRESQL_DATABASE=""
POSTGRESQL_USERNAME=""
POSTGRESQL_PASSWORD=""
POSTGRESQL_HOSTNAME=""
ALGOLIA_SEARCH_INDEX_NAME=""
ALGOLIA_APPLICATION_ID=""
ALGOLIA_ADMIN_API_KEY=""
ALGOLIA_SEARCH_API_KEY=""
If you want to use https in development, sign you're own certificate with mkcert
using this Guide and set these environment variables:
HTTPS=true
TLS_CERTIFICATE_PATH=""
TLS_CERTIFICATE_KEY_PATH=""
$ npm start
Set TESTING=true
in .env
$ npm run build