Skip to content

nkangpint/rando1

Repository files navigation

PINT-PWA

Dependencies

Required

  • Node >= 9.3.0
  • npm
  • bower
  • homebrew + xcode (macOS)

Recommended

  • nvm (node version manager)

Getting started

1. Gitlab setup

Before starting, you'll need to make sure you have SSH keys added into the https://gitlab.pint.com website appropriately. https://docs.gitlab.com/ce/ssh/README.html#generating-a-new-ssh-key-pair

2. Environment Installation (macOS)

  • Note: If any of these fail, you probably need to re-run the command with sudo.
  1. Install nvm: $ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
  • Note: If you see a prompt to install xcode command line tools, follow the steps on that prompt. You will need to re-run this command again after it installs.
  1. Install at least v9.3.0 of node $ nvm install 9.3.0

  2. Install bower $ npm install -g bower

  3. Install firebase-tools $ npm install -g firebase-tools

  4. Authenticate with your pint.com email in the browser window that pops open. $ firebase login

3. Obtain the repository

$ git clone [email protected]:pwa/pint.git && cd pint

4. Development

  1. Install all dependencies $ npm run 📦 or $ npm run start This will install all npm dependencies including the pwa-build repo, which will handle all the build steps.

  2. Start development server $ npm run 🔥 or $ npm run dev

Note: The first time running the development server may take a while. (Installing client side dependencies)

And you should be up and running!

Any changes to the /src folder will be auto-compiled and your browser should reload and detect those changes.

Commands

$ npm run build:dev

Creates a static ES6 build, and firebase assets

$ npm run build:prod

Creates a production ready build with ES5/ES6

$ npm run dev

Creates a "live-reloading" environment that watches for content changes, builds a fresh ES6 build, and reloads the browser automatically.

TODO:

document how to use local environemnt firebase config: https://stackoverflow.com/questions/44766536/how-do-you-setup-local-environment-variables-for-cloud-functions-for-firebase

  • Integrate firebase serve to have functions,
  • Utilize redirects + rewrites for function varaibles.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •