- Node >= 9.3.0
- npm
- bower
- homebrew + xcode (macOS)
- nvm (node version manager)
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
- Note: If any of these fail, you probably need to re-run the command with sudo.
- 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.
-
Install at least v9.3.0 of node
$ nvm install 9.3.0
-
Install bower
$ npm install -g bower
-
Install firebase-tools
$ npm install -g firebase-tools
-
Authenticate with your pint.com email in the browser window that pops open.
$ firebase login
$ git clone [email protected]:pwa/pint.git && cd pint
-
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. -
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.
Creates a static ES6 build, and firebase assets
Creates a production ready build with ES5/ES6
Creates a "live-reloading" environment that watches for content changes, builds a fresh ES6 build, and reloads the browser automatically.
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.