Du kannst nicht mehr als 25 Themen auswählen
Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Alexander Wong
db75281128
|
vor 6 Jahren | |
---|---|---|
.vscode | vor 7 Jahren | |
public | vor 7 Jahren | |
src | vor 6 Jahren | |
.env | vor 7 Jahren | |
.gitignore | vor 7 Jahren | |
README.md | vor 7 Jahren | |
package.json | vor 6 Jahren | |
yarn.lock | vor 6 Jahren |
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
.