- Install dependencies by running
npm install
. - Install client dependencies by running
npm run install:client
. - See the readme's in the associated directories for more info about each
- Add .env file with the following info:
PORT=5001
NODE_ENV=<dev, production>
DB_USER=
DB_PASS=
CLIENT_ID=(For github authentication)
CLIENT_SECRET=(For github authentication)
JWT_SECRET=
- Run
npm run build:client
to build the client app for serving - Run
npm start
to start the mongo db connection and serve the app on localhost 5001 - 😎 That's it!
Starts up the mongo db connection and serve the app on localhost 5001
Runs unit tests on the models
Runs api tests. Be sure to set the .env to run on the dev environment
Runs linting on the client project
Runs unit tests on client components
Runs accessibility tests on client components
Runs snapshot tests on client components
Builds the client application for serving
Spin up the library locally and open cypress to run tests
Builds the image based on the current state of the app
Creates and runs a container based on the created image
See the following tutorial for spinning up jenkins running the pipeline:
https://jenkins.io/doc/tutorials/build-a-node-js-and-react-app-with-npm/#fork-sample-repository