Web application collects users data from Random user generator API, stored it in mongo database and providing interface for simple CRUD operations.
Configuration file config.py in webapp directory must contain:
- MONGO_URI = "mongodb+srv://{username}:{password}@userscluster.k1pbt.mongodb.net/appdb?retryWrites=true&w=majority""
- RANDOMUSER_URL = "https://randomuser.me/api/1.3/"
- SECRET_KEY = "{your_secret_key}"
docker build -t random_users_hub .
docker run -p 5000:5000 random_users_hub
Clone the repo:
git clone https://github.com/DianaPrs/random_users_hub.git
Create virtual environment:
python -m venv env
Activate virtual environment for Linux or Mac:
source env/bin/activate
for Windows:
env \Scripts\activate
Inatall packages and run:
pip install -r requirements.txt
./run.sh