Simple react app to show a random dog picture filtered by breed using dog's API
Simply follow these steps:
- clone project
- run
npm install
inside the cloned folder - run
npm run start
To run some tests simply enter npm run test
To create a docker image of this web app run the following commands inside the project folder:
docker build -t random-puppy-docker .
docker run -it --rm -p 5000:5000 --name react-demo random-puppy-docker
- visit http://localhost:5000/
In case you want it to run as daemon use flag -d
in the run command.
docker run -it --rm -d -p 5000:5000 --name react-demo random-puppy-docker