Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aliartiza75/config-manager
This repository contains flask based endpoints for configuration manager service.
https://github.com/aliartiza75/config-manager
Last synced: 26 days ago
JSON representation
This repository contains flask based endpoints for configuration manager service.
- Host: GitHub
- URL: https://github.com/aliartiza75/config-manager
- Owner: aliartiza75
- Created: 2018-11-07T18:40:48.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-04T07:02:42.000Z (5 months ago)
- Last Synced: 2024-06-04T08:25:42.930Z (5 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Configuration Manager
This repository contains flask based endpoints for configuration manager service.## Configurations and server initialization
* Install docker ce version [link](https://docs.docker.com/install/linux/docker-ce/ubuntu/)
* Start mongodb server:
```bash
$ sudo docker run --name=config-manage-mongodb --net=host -d mongo:latest
```* Check mongodb server is running:
```bash
$ sudo docker logs config-manage-mongodb
```* Move inside the project folder:
```bash
$ cd config-manager
```* Install python virtual environment:
```bash
$ python3 -m pip install --user virtualenv
```* Create a virtualenv
```bash
$ python3 -m virtualenv config-manager-venv
```* Activate virtual environment
```bash
$ source config-manager-venv/bin/activate
```* Install all the packages using the command below:
```bash
$ pip3 install --upgrade -r requirements.txt
```
* Root directory contains `.env.example` file, configure it according to you needs
* Rename the file using the command below:
```bash
$ cp .env.example .env
```
* To export the environment variable use the command given below:
```bash
$ source .env
```* To start the server use the command given below:
```bash
$ flask run --host=$FLASK_HOST_IP --port=$((FLASK_HOST_PORT))
```## API Documentation
APi documentation can be found on this link [API DOCUMENTATION](https://documenter.getpostman.com/view/5856653/RzZAixnE)