This repository contains the integration test suite for Music Library API challenge.
- Fork this repository
git clone git@github.com:<your-github-username>/music-library-api-mysql.git
npm install
This setup assumes that you are running MySql
on in Docker.
This project requires a running MySQL database. To set one up with Docker, run:
docker run -d -p 3306:3306 --name music_library_mysql -e MYSQL_ROOT_PASSWORD=<PASSWORD> mysql
The create-database
and drop-database
scripts will run automatically before and after your tests to handle databese setup/teardown/
Create a new file in the project root called .env.test
and add the database connection details as set out in .env.example
.
Create a new file in the project root called .env
and add your environment variables, as set out in .env.example
.
You can then fire up the API with npm start
.