-
Clone this repository
-
If you haven't already, install node and npm.
brew install node
- Run cmd.sh which include the following commands to install dependencies as well as dev dependencies.
npm init -y
npm i --save react react-dom
npm i --save-dev react-test-renderer
npm i --save-dev parcel-bundler @babel/preset-env @babel/preset-react
npm i --save-dev jest babel-jest enzyme enzyme-adapter-react-16
- Then, in package.json, add the following settings in for scripts, babel and jest.
"scripts": {
"start": "parcel index.html",
"build": "parcel build index.html",
"test": "jest",
"test-watch": "jest --watchAll"
},
"babel": {
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
},
"jest": {
"verbose": true,
"testURL": "http://localhost/",
"notify": false
},
- Reset git in your folder by deleting the .git folder, .gitignore and README, by running `the following:
rm -rf .git .gitignore README.md
git init
- Start the developing cycle!
run npm start
in one terminal,npm test-watch
in another, to build and test automatically your application as you modify index.html, and scripts, styles, test (don't forget to add tests!) insrc/
folder.
- Change details in serverless.yml, and change and rename
.env_tmpl
.
MAKE SURE YOU ADD .ENV TO .GITIGNORE TO PROTECT YOUR CREDENTIALS!!!