Populate your app with these variables with an .env file at the root.
REACT_APP_DATABASE_URL=
REACT_APP_DATABASE_USERNAME=
REACT_APP_DATABASE_PASSWORD=
REACT_APP_SALT=
REACT_APP_ENCRYPTION_PASSWORD=
# Only needed since there's a babel-loader mismatch between CRA and storybook
# https://github.com/facebook/create-react-app/issues/10123
SKIP_PREFLIGHT_CHECK=true
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
It's possible you'll need to configure these variables in your .rc
file
# for storybook
# export NODE_ENV=development
# export BABEL_ENV=$NODE_ENV
echo NOTE: hard coding development for both the NODE_ENV and BABEL_ENV.. see https://github.com/facebook/create-react-app/issues/2377
## Learn More
This project, like literally every single other ReactJS app, was bootstrapped with Create React App.
Resets configuration for the current project. This is useful if you need to switch accounts
Initializes all configuration to deploy the app to the cloud
deploys the app to the specified environment
- Sudo
sudo su
- Set these env variables
DOMAIN=api.sergionajera.com
WILDCARD=*.$DOMAIN
- Run certbot command
sudo certbot -d $DOMAIN -d $WILDCARD --manual --preferred-challenges dns certonly
Idea to automate: set up a scheduled job to run certbot renew
every other month