API for Simple App.
These instructions are for use without docker
- Make sure that Node.js is installed.
- Install Node.js modules with
npm
:
npm install
- To run the app, copy the file
config/env/development.js
toconfig/local.js
and substitute the settings to match your develoment environment. - Start the app with
npm
:
npm start
- Navigate to localhost:1500. Please note
1500
is the default port used, you can change this inconfig/local.js
or the corresponding enviroment file inconfig/env
depending on your NODE_ENV os eniroment variable.
- Tests are written using the Mocha.js library.
- To run tests with
npm
use:
npm test
- Make sure that Minikube (Local kubernetes installtion) is setup & configured.
- Also install the nginx minikube controller if you havent already. You can deploy a copy using
kubectl create -f ./deployment/deployments/ingress/nginx-minikube/
- Install and setup dnsmasq, and point your minikube installation IP to *.vm:
- Setup secrets found in deployment/deployments/deployment.yaml
- Run in the follwing order:
kubectl create ns develoment
sh ./deployment/deploy.sh dev
- Navigate to http://api.simple.vm