1.0.10 • Published 5 years ago

@hotelscanner/lib v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

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-pair to generate key pair for JWT
  • Copy content of private and public keys to JWT_PRIVATE_KEY and JWT_PUBLIC_KEY env variables in kube/*.yaml files
  • Set IP or DBHOST environment variable to IP or host that mongoDB is available on
  • Change environment variables example values to real for all kube/*.yaml files. All variables are listed in .env.example files
  • Create data/db folder in the project root for mongodb files
  • Run make run-db to start mongodb server
  • cd to scripts, set up env variables for db and run make import-db to import data into db
  • Run minikube start to start minikube
  • Run make start to build docker images for API services and deploy them
  • Use url printed at the bottom of console to access API
  • cd to client, set API URL using env vars, run npm i and npm start
  • To run a specific service separately, define environment variables in .env file and run make start
1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago