Client website for notes-api, create an persist user's notes.
This is an educational WebApp. Use and run this Application to learn about React design, API usage and local development setup.
Considering local development, this repo comes with a .env.example file with the only two variables that can be configured.
Set those into a new .env file and run:
npm run start
This will only run the website application, this assumes you already have the API running.
The Dockerfile contains the instructions to build the react app and install serve a npm package that takes care of serving the HTML built.
To create an image for this production build run:
docker build --build-arg REACT_APP_API_HOST_URL=http://localhost:3030 -t notes-web-production .
Note
Update the value for the environment variable to the API URL
To run in a container, run:
docker run -d -p 8080:8080 notes-web-production
Note
Update the port mapping as needed
To run the image, using
To run both together, please look at: nodes-development
This React application consumes the following api: notes-api