Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
Alexander Wong
db75281128
|
6 anni fa | |
---|---|---|
.vscode | 7 anni fa | |
public | 7 anni fa | |
src | 6 anni fa | |
.env | 7 anni fa | |
.gitignore | 7 anni fa | |
README.md | 7 anni fa | |
package.json | 6 anni fa | |
yarn.lock | 6 anni fa |
README.md
CareMyWay Client
Generated using create-react-app.
Quickstart (Development)
- Ensure the server is up and running locally.
- Install dependencies with
yarn install
- Run the client with
yarn start
Now you can visit localhost:3000
from your browser.
Environment Variables
The environment variables are embedded during the build time. For more information, please refer to the docs.
Environment Variable | Default Value | Description |
---|---|---|
REACT_APP_API_ENDPOINT |
"http://localhost:8000" |
Server API endpoint |
REACT_APP_REDUX_LOGGING |
|
Set any value for Redux logging |
Production
To build the production instance of this application, run the following:
export REACT_APP_API_ENDPOINT="http://dev.tannercollin.com:8000/" && yarn build
# then, to serve the production site locally
yarn global add serve
serve -s build --port 3000
Testing
To test the react app, call yarn test
.