This project was generated with Angular CLI.
- Install Node.js.
- Install Angular CLI.
- Clone the repo:
git clone https://github.com/gp4tech/website.git
- Install dependencies:
cd website
npm install
- Create the keys file.
- Run the project locally on the Development server.
Run npm run env-keys-config:create-keys
and add your keys to the file: src/environments/keys-config.ts.
You can find the firebase keys for dev site in the following link.
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.
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
.
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.
Run ng lint
to execute linting.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Access here for current develop site.
In order to deploy follow these steps:
- Install firebase tools globally if you don't have it:
npm install -g firebase-tools
- Login to your firebase account the first time:
firebase login
- Deploy the site after building it for production:
firebase deploy
To run locally these cloud functions you need to add missing environment variables in the .runtimeconfig.json.
To only run the functions execute:
firebase serve --only functions
On firebase the environment variables for the cloud functions are set up via a command:
firebase functions:config:set sendgrid.apikey="API_KEY"
To review which environment variables already are configured on firebase project:
firebase functions:config:get
Continuous Integration and Continuous Deployment is made with CircleCI.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.