Code repository for the Insights Agent web application.
- Node
- npm
- git
- nvm
git clone [email protected]:specollective/insights-agent-web-app.git
cd insights-agent-web-app
nvm use
npm install
Copy the contents of the .env.example
to a file named .env
.
REACT_APP_API_URL=http://localhost:8000/api
Run the following command and the app should open should open on http://localhost:3000.
npm start
npm run start:mirage
Useful for testing certain authentication flows. Please follow the steps in this tutorial to generate your SSL certificate for localhost.
https://www.mariokandut.com/how-to-setup-https-ssl-in-localhost-react
Once you've installed the certificates, run the following command and the app should open on https://localhost:3000.
npm run start:ssl
npm test