Skip to content

gp4tech/website

Repository files navigation

CircleCI

License: MIT

GP4Tech Website

This project was generated with Angular CLI.

Setup your environment

git clone https://github.com/gp4tech/website.git
  • Install dependencies:
cd website
npm install

Create keys file

Run npm run env-keys-config:create-keys and add your keys to the file: src/environments/keys-config.ts.

Firebase keys

You can find the firebase keys for dev site in the following link.

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.

Running lint

Run ng lint to execute linting.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Firebase Hosting

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

Cloud Functions

Environment Variables Configuration

Local

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

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

CI/CD

Continuous Integration and Continuous Deployment is made with CircleCI.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

About

Main website for GP4Tech organization

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 11