- Install dependencies
npm i
- Add
.env
file
cp .env.example .env
-
Change
name
inpackage.json
to actual project name in kebab-case -
Run development server and go to http://localhost:3000/
npm start
Describe branch as TASK_KEY/SHORT_NAME
TASK_KEY
- project prefix + task number (e.g. AVA017)SHORT_NAME
- description of the task
Example:
AVA0017/create-sign-up-screen
Describe commit as TASK_KEY
: SHORT_DESCRIPTION
Example:
AVA0017: make sign up layout
There are 3 git branches: dev
, stage
and master
. Each branch has own deploy environment: development
, staging
, production
.
Add .env
variables into .drone.yml
file.
.drone.yml
has 3 sections: Build Development
, Build Staging
and Build Production
. You should fill up environment
in section you needed.
- name: Build Development
image: kudato/baseimage:node12
commands:
- npm install --quiet
- npm run build
environment:
YOUR_VARIABLE: 'your-value'
when:
branch: dev
event:
- push
- pull_request