This is a template for EmCasa's react projects.
To run this project you'll need:
- nodejs >= 12
- yarn
Install nodejs dependencies:
yarn install
Configure your .env
file according to .env.example
Run the start
command to start the dev server.
yarn start
To configure your project's CircleCI workflow do the following:
- Edit
configurations
on L16 according to your project - Replace all instances of
react-starter-test
,react-starter-staging
andreact-starter-production
with your project's respective contexts
To display Lighthouse results on PRs install the Lighthouse app
on your github
project and copy your LHCI_GITHUB_APP_TOKEN
to the -test
context.
This project is set up to deploy on ECR and Elastic Beanstalk using CircleCI. To enable this workflow do the following:
In .elasticbeanstalk/config.yml, configure your eb project's name.
For advanced customization you may use .ebextensions/
(See the docs).
Then, uncomment all jobs from L136 of .circleci/config.yml
.
CircleCI needs these variables to deploy on AWS:
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=***
AWS_SECRET_ACCESS_KEY=***
Both the server and client get bundled on CircleCI, copied to a docker
container and then deployed to ECR. This means that all application variables
should be defined on the CircleCI context, which is only overridden by .env