A React.js client for Todo api.
- clone the Todo api project.
- follow Todo api project's README and run it.
- clone this project.
- in the project directory run
yarn install
. - start the development server by running
yarn start
.
Run docker build --tag todoappui .
in the project directory.
The image accepts REACT_APP_API_URL
environment variable that you can pass to it when running the container with docker run
.
Here's how I pass environemt variables to react at runtime
This app is secure against XSS and CSRF
Login token is stored only in memory (as a variable) and refreshed with a refresh token on each reload.
Refresh token is stored as a SameSite and httpOnly cookie.