Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 1.12 KB

readme.md

File metadata and controls

68 lines (48 loc) · 1.12 KB

Development Setup

Install Node.JS v18

Official Download

Or use Volta (preferred)

Clone Repository

$ git clone https://github.com/olyop/musicloud.git

Install Dependencies

$ cd musicloud
$ volta install
$ npm i

Create .env file

$ 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=""

Start Development Server

$ npm start

Build and test

Set TESTING=true in .env

$ npm run build