1.0.10 • Published 7 years ago
@hotelscanner/lib v1.0.10
Hotelscanner
Development
- Make shure you have docker installed
- Make sure you have kubernetes-cli installed (https://labs.consol.de/development/java/kubernetes/2017/02/10/minikube.html)
- Make sure you have minikube installed (https://labs.consol.de/development/java/kubernetes/2017/02/10/minikube.html)
- Run
make generate-key-pairto generate key pair for JWT - Copy content of private and public keys to
JWT_PRIVATE_KEYandJWT_PUBLIC_KEYenv variables inkube/*.yamlfiles - Set
IPorDBHOSTenvironment variable to IP or host that mongoDB is available on - Change environment variables example values to real for all
kube/*.yamlfiles. All variables are listed in.env.examplefiles - Create
data/dbfolder in the project root for mongodb files - Run
make run-dbto start mongodb server - cd to
scripts, set up env variables for db and runmake import-dbto import data into db - Run
minikube startto start minikube - Run
make startto build docker images for API services and deploy them - Use url printed at the bottom of console to access API
- cd to
client, setAPI URLusing env vars, runnpm iandnpm start - To run a specific service separately, define environment variables in
.envfile and runmake start