git clone {github link}
npm run install-both
to install npm dependencies for frontend and backend
Alternatively, you can run npm i
in the root directory and npm i
in the my-app directory.
-
npm run dev
to run both frontend and backend, access the site at http://localhost:3000 -
npm start
to run just backend -
npm run client
to run just frontend
-
First, run
npm build
in themy-app
directory -
Then, you can run the production build through
npm start
and visiting http://localhost:5000
Contact [email protected] for database and password encryption information to fill out envrionments variables
Alternatively, you can access envrionment variables through GitHub repo Secrets
https://github.com/airbnb/javascript
npm run get-report
to generate an html static code analysis report, saved in report-output.html
You can find a screenshot of the most updated report in the repo's GitHub wiki
Tests are run on a test database, seperate from the production database being used on the Heroku deployment
Unit tests are written using Jest, and stored in the __jest__
folder
Acceptance tests are written using Cypress and the Cucumber plugin, and are stored in the cypress/integration
folder
npm run test:jest
will run the jest tests in the proper folder and provide a coverage report
npm run test:cy
will run launch the server and run the cypress acceptance tests
npm run test
will run the above two commands
You can find a screenshot of the unit test coverage in the repo's GitHub wiki
We are using Travis CI for this project
https://travis-ci.com/github/adrien-chaussabel/CSC308-Club-Sports
Deployed using heroku on: https://club-sports-hub.herokuapp.com/
https://www.figma.com/file/rwvDW4MBXvO3duub7Jva10/Club-Sports?node-id=0%3A1