Gift the code 2017
Clone or download
Pull request Compare This branch is 32 commits behind Jesse-longname:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
e2e
scripts
src
.angular-cli.json
.editorconfig
.firebaserc
.gitignore
README.md
firebase.json
firestore.indexes.json
firestore.rules
karma.conf.js
package-lock.json
package.json
protractor.conf.js
storage.rules
sw-precache-config.js
tsconfig.json
tslint.json
yarn.lock

README.md

GiftTheCode

This project was generated with Angular CLI version 1.5.0.

Getting started

  1. Clone the repo
  2. Navigate to root directory in your favourite terminal
  3. Run yarn install (or npm install I guess, but that doesn't have lockfiles)
  4. Umm... Past that do what you want I guess, just don't screw too much up. :D

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Deploying on Firebase

From the root directory, run npm run firebase-deploy. This will build the project, generate a service worker, and then deploy it to firebase.

The link to the site is: https://gift-the-code.firebaseapp.com/

Scripts

Follow these steps to be able to run scripts. Virtualenv is recommended. Pip is mandatory

  1. In your favourite Command terminal, navigate to the scripts directory.
  2. Run the following commands
    1. virtualenv env
    2. source env/scripts/activate
    3. pip install -r requirements.txt
  3. You are all set up to run scripts