-
-
Notifications
You must be signed in to change notification settings - Fork 2
start
Kristiqn Tachev edited this page Mar 6, 2021
·
1 revision
gapi startThis 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 startgapi start --prodgapi start --my-enviromentYou 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/prodgapi start --local --parcelgapi start --local --parcel --inspectgapi start --local --parcel --inspect-brkgapi start --local --lint --parcel --inspect-brkYou have to define command
lintin yourpackage.json