A simple REST API which allows authenticated users to create and edit notes.
-
Clone this repository.
git clone [email protected]:lewisemm/notes.git
-
Install the Docker Engine for your platform. When finished, check that it has installed correctly by checking the Docker Engine's version.
docker --version
-
If you're running this app on Linux, install docker-compose by following these instructions.
The Docker Engine on Mac and Windows already include docker-compose, so you may skip this step if you are running on those platforms.
After successful installation, confirm everything is in working order by checking the docker-compose version.
docker-compose --version
Using docker-compose, running the app is quite straightforward.
cd
into the root directory and issue the following command.
docker-compose up
The app can be stopped in one of two ways;
-
Pressing
Ctrl + C
keys on the terminal that is runningdocker-compose up
. -
Opening a new terminal window and running the following command.
docker-compose down
Documentation for this API can be accessed through http://localhost:8080/api/docs on the browser once the app is running.
To run the tests, first make sure that the test.sh
script has sufficient executable permissions.
sudo chmod 500 test.sh
Once that is done, the tests can be run by running the test.sh
script.
./test.sh