This project built using:
This is an initial version, that implements some song CRUD operations. More specifically:
- Create song with attached file
- Delete song
- Song creation request validation (required fields, file extension, file size)
- Fetch song info
- Fetch track file
- List info about songs
CREATE DATABASE __DB_NAME__;
$ touch .env
Define needed environment variables as key/value pairs. In order to run the application you need to specify the following variables:
PORT
DB_NAME
to match your previously created databaseDB_USER
to match your PostgreSQL connectionDB_PASSWORD
to match your PostgreSQL connectionDB_HOST
FILE_MAX_SIZE
to define max allowed file size to upload
Before starting the server, install all the needed dependencies for the project, running the following command:
$ npm install
Run the appplication using your terminal at project's root directory:
$ npm start
Once server is up and running, db schema is going to be automatically initialized by Sequelize.
This project is licensed under the terms of the MIT license. Check LICENSE file.