An API to submit meter reading.
- Open the Folder 'Database' in VS CODE
- Make sure Docker is running.
- Open the terminal and type in the below
docker-compose down
docker-compose build
docker-compose Up
- Make sure to check the container is up. Once its up, to verify the MySQL is running , open a new terminal and type in below
docker exec -it database-mysql-1 bash
mysql -uroot -p
- The password is in the env file.
- Once in, type in below
show databases;
USE meter-reading
Once the above are done and you can see the DB up, open the code base in Visual Studio and run it normally.
In the tests folder, i have included a post man collection, that can be used to set the difference scenarios mnetioned in the AC.