- In the root directory, run
npm installto install all the project dependencies - Run
npm startto start the dev server - Navigate to http://localhost:1234 (or the url provided after running
npm start) - Open a second terminal
- Go to the
/functionsdirectory, and runnpm install - Run the emulator for hosting, functions, and the db:
npm run serve:hosting - If you want to log in, you'll have to switch the
access.jsfromaccess-prodtoaccess-dev.
- If you changed
access.js, reset it back to prod - Run
npm run build - cd into the
/functionsdirectory - Run
npm run deploy:hosting
Below are a list of commands used for development. The logic for all the commands is in the local package.json
npm start- starts a server hosting the webapp on localhost using Parcel and will watch for changesnpm run build- builds a final distributable using Parcelnpm test- runs tests in Jestnpm run lint- runs linting on the project based on xo and the tram-one-eslint-config