1.5.1 • Published 4 years ago
cirplus-frontend v1.5.1
Installation
Required applications
Please make sure the following applications are installed in your system
- node => 10.15.3
- yarn => 1.16.0
Installation
NPM Setup
- Copy the npm token from 1password named as
NPM publish token
- If you are using
bash
shell:- open
~/.profile
(Create if not exist) - Enter the following lines with the proper npm token
- open
export NPM_TOKEN="your npm token"
- If you are using
fish
shell:- Open
~/.config/fish/config.fish
file (create if not exist) - Enter the following lines with the proper npm token
- Open
set -x NPM_TOKEN your npm token
Install the modules
yarn
Create the development config file
- Run the following command
cp config/development.example.js config/development.js
- Replace the apiSecret with the one you used for koalaApi in the backend project.
Run the application
yarn dev
Deployment
- Create an AWS creadentials file (skip this step if you did it before)
open a file editor and enter the following information
[default]
region = eu-central-1
[cirplus-staging]
aws_access_key_id = Your access ID for staging
aws_secret_access_key = Your access key for staging
region = eu-central-1
[cirplus-beta]
aws_access_key_id = Your access ID for staging
aws_secret_access_key = Your access key for staging
region = eu-central-1
# You can skip the production section if you don't have access
[cirplus-production]
aws_access_key_id = Your access ID for production
aws_secret_access_key = your access key for production
region = eu-central-1
- Save as
~/.aws/credentials
- Deploy the application to the selected environment
# yarn ci deploy koala [staging|beta|production]
yarn ci deploy koala staging
- That's it! 🚀