Stack is a tool that shows technology used in your product. There is a strong integration with Tech Gallery and Knowledge Map
Git and Python 2.7.9 . For Python you need to install the following modules:
- pip install flask
- pip install requests
- pip install elasticsearch
$ git clone https://github.com/marcuslacerda/stack-gallery.git
$ cd stack-gallery
You must define these environments on your variable.
$ export GOOGLE_CLIENT_ID=set-google-client-id-here_or_export-env-vavariable>
$ export GOOGLE_CLIENT_SECRET=set-google-client-secret-here_or_export-env-vavariable>
$ export ELASTICSEARCH_URL=url-to-elasticsearch-stack
Running server local
$ python server.py
You must install Docker on your environment. After you can build the image using the following command.
$ git clone https://github.com/marcuslacerda/stack-gallery.git
$ docker build -t stack-app:latest .
Run the Docker container using the command shown below.
$ docker run -e ELASTICSEARCH_URL=http://localhost:9200 -e GOOGLE_CLIENT_SECRET=<put-your-client-secret> -e GOOGLE_CLIENT_ID=<put-your-client-id> -p 5000:5000 stack-app
If you need a full local enviroment, you must start Elasticsearch and change elasticsearch host at ELASTICSEARCH_URL variable.
You must configure these GOOGLE values from Google APIs console
$ run docker -p 9200:9200 elasticsearch
The application will be accessible at http://localhost:5000