artwork

User Store

Python 3.6 flask 1.1.2 Actions Status

How to run the system

  • Run a mongodb server if you already don't have any.
  • Seed the database
cd mongo-data
mongoimport --db userStore --collection "user" --drop --type json --host "localhost:27017" --file "UserStore.json" --jsonArray
  • Install python dependencies pip install -r requirements.txt
  • Run flask server python app.py

By default the server will run on localhost:5000

Available API Endpoints:

Import postman collections

ImportPostman

Check the individual requests and its description to get more detail.

Pytest

Run this command in the root folder to perform E2E test

pytest