The application for flexible time management
Based on heroku-cra-node
Clone repository (git clone https://github.com/applaura/web.git)
Start MongoDB (install and run MongoDB)
In a terminal:
# Initial setup
yarn install
# Start the server
yarn start
yarn develop (start with nodemon)The React app is configured to proxy backend requests to the local Node server. (See "proxy" config)
In a separate terminal from the API server, start the UI:
# Always change directory, first
cd react-ui/
# Initial setup
yarn install
# Start the server
yarn startIn a separate terminal from the API server and react UI:
# Run all tests
yarn test
# Run only server tests
yarn test server
# Run only react UI tests
cd react-ui/
yarn testYou can use a button
or make it manually
git clone https://github.com/applaura/web.git
cd web/
heroku create
git push heroku masterThis deployment will automatically:
- detect Node buildpack
- build the app with
- npm install for the Node server
- heroku-postbuild for create-react-app
- launch the web process with npm start
- serves ../react-ui/build/ as static files
- customize by adding API, proxy, or route handlers/redirectors
More about deploying to Heroku.
GitHub Integration (Heroku GitHub Deploys)
Application required three environment variables
Basic auth
USER: string
PASS: stringDatabase (mlab.com or something like this)
MONGO_URI: mongodb://<dbuser>:<dbpassword>@ds123456.mlab.com:12345/<dbname>