-
-
Notifications
You must be signed in to change notification settings - Fork 2
start
Kristiqn Tachev edited this page Mar 6, 2021
·
1 revision
gapi start
This command will start the application with nodemon and compile on runtime with ts-node then you can open http://localhost:9000 to see your application working.
config:
app:
local:
API_PORT: 9000
API_CERT: ./cert.key
NODE_ENV: development
AMQP_HOST: 182.10.0.5
AMQP_PORT: 5672
ENDPOINT_TESTING: http://localhost:9000/graphql
TOKEN_TESTING: ''
prod:
API_PORT: 9000
API_CERT: ./cert.key
NODE_ENV: production
AMQP_HOST: 182.10.0.5
AMQP_PORT: 5672
ENDPOINT_TESTING: http://182.10.0.101:9000/graphql
TOKEN_TESTING: ''
my-environment:
API_PORT: 9000
API_CERT: ./cert.key
NODE_ENV: development
AMQP_HOST: 182.10.0.5
AMQP_PORT: 5672
ENDPOINT_TESTING: http://localhost:9000/graphql
TOKEN_TESTING: ''
gapi start
gapi start --prod
gapi start --my-enviroment
You can extend configurations from APP when you write after environment "extends app/my-environment"
config:
app:
local:
API_PORT: 9000
API_CERT: ./cert.key
NODE_ENV: development
AMQP_HOST: 182.10.0.5
AMQP_PORT: 5672
ENDPOINT_TESTING: http://localhost:9000/graphql
TOKEN_TESTING: ''
prod:
API_PORT: 9000
API_CERT: ./cert.key
NODE_ENV: production
AMQP_HOST: 182.10.0.5
AMQP_PORT: 5672
ENDPOINT_TESTING: http://182.10.0.101:9000/graphql
TOKEN_TESTING: ''
my-environment: extends app/local
test:
my-environment: extends app/my-environment
local: extends app/local
prod: extends app/prod
worker: extends app/prod
gapi start --local --parcel
gapi start --local --parcel --inspect
gapi start --local --parcel --inspect-brk
gapi start --local --lint --parcel --inspect-brk
You have to define command
lint
in yourpackage.json