- In the root directory, run
npm install
to install all the project dependencies - Run
npm start
to start the dev server - Navigate to http://localhost:1234 (or the url provided after running
npm start
) - Open a second terminal
- Go to the
/functions
directory, 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.js
fromaccess-prod
toaccess-dev
.
- If you changed
access.js
, reset it back to prod - Run
npm run build
- cd into the
/functions
directory - 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