Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

chtinahow/beer-cart.io

Repository files navigation

beer-cart.io


⚠️ Note this project is no longer maintained, feel free to fork or start your own project!


Development instructions

  1. In the root directory, run npm install to install all the project dependencies
  2. Run npm start to start the dev server
  3. Navigate to http://localhost:1234 (or the url provided after running npm start)
  4. Open a second terminal
  5. Go to the /functions directory, and run npm install
  6. Run the emulator for hosting, functions, and the db: npm run serve:hosting
  7. If you want to log in, you'll have to switch the access.js from access-prod to access-dev.

Deployment Instructions

  1. If you changed access.js, reset it back to prod
  2. Run npm run build
  3. cd into the /functions directory
  4. Run npm run deploy:hosting

Development commands

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 changes
  • npm run build - builds a final distributable using Parcel
  • npm test - runs tests in Jest
  • npm run lint - runs linting on the project based on xo and the tram-one-eslint-config

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published