This is the repository for the frontend of demo.please.com. This project was bootstrapped with Create React App and then later moved over to React app rewired.
π Development
$ git clone git@github.com:PleaseDotCom/frontend.git
$ cd frontend
# install dependencies
$ yarn
We have a few yarn specific code in our package.json
thus we recommend you use yarn for package management with this repo.
# export the backend endpoint to use
$ export REACT_APP_PARSE_SERVER_URL=https://please-api.herokuapp.com
# start the web app
$ yarn start
π¨ Style Guidelines
We use Prettier for formatting the code for this repo.
Before comitting do run yarn prettier-all
to format the code, or add it in the pre-commit
hook and it'll be automatically taken care of.
How to add Prettier to pre-commit hook?
$ touch .git/hooks/pre-commit
$ chmod +x .git/hooks/pre-commit
$ echo '''#!/usr/bin/env bash
yarn lint-staged''' > .git/hooks/pre-commit
Troubleshooting
If you're stuck somewhere while working on something create an issue or jump on to the Telegram group and we'll help you out.
π License
Licensed under the MIT license. See LICENSE for more information.