- Install Node.js (Versions older than 11 may not work)
- Clone the repository to your local environment
- Go to the root directory of your local repository and use the following commands:
npm run setup
andnpm install
.
The testing framework we have set up is Jest for unit tests, and Nightwatch using Selenium and Chromedriver for end-to-end tests.
Local unit tests (anything ending in test.js) can be run if you use the npm run unit-test
command. To test only the changes you have on your local environment, use npm run unit-test -- -o
.
End-to-end tests can be run using the npm run e2e-test
command. To run e2e tests headlessly (doesn't open up an automated browser window), use the command npm run e2e-test -- --headless
.
- Login and logout
- Two input tags and ADD to firebase
- Ajax update a table / Dynamic insert and delete row
- UPDATE and DELETE each row
- Automatically trigger when push to github
- Style enforcing
- Unit Test
- Deploy the website (Maybe use Amazon lambda function or Google Cloud function)
- Use API endpoint instead of stright update to firebase for data santiization
- Auto deploy new version when pass test
- API test
- End to end test for website
- Minification