Skip to content

User-micro service act as a boilerplate to make user authentication system of micro services that could be easily integrated in your micro service architecture

Notifications You must be signed in to change notification settings

aks97cs/xeo_users

Repository files navigation

Build Status Docker Repository on Quay Docker Repository on Quay Docker Repository on Quay Docker Repository on Quay

User Microservice

Project Setup

Prerequisite

Install docker and docker-compose in your OS
please refere the Link

 Up/Running with service
  • Go to project root directory
  • To start project: Run docker-compose up -d
  • - now visit on http://127.0.0.1:8000
    - Note: Make sure port 8000 and 5432 is open in your machine
  • To stop your project: Run docker-compose down
API Endpoint
  1. 127.0.0.1:8000/user => GET
  2. 127.0.0.1:8000/user/ => POST
  3. 127.0.0.1:8000/user/user_id => PUT
  4. 127.0.0.1:8000/user/user_id => DELETE

API Specification DOC

Troubleshoot

In case of any issue run command with sudo or take reference of log
To view container log
Run: docker logs ##container-name##
Or
RUN: docker-compose down and then docker-compose up now see the log in terminal

Building fixture from existing DB
- docker-compose run xeo_web ./manage.py dumpdata app_name.model_name --indent 4 > service/fixture/users.json

Loading fixture in db
- docker-compose run xeo_web ./manage.py loaddata service/fixtures/users.json --app app.model_name

Command to run test

docker-compose run xeo_web ./manage.py test

prospector --uses django -o json service > temp/.prospector_history/a
Anuj Kumar Singh
anuj.dev@hotmail.com
Happy to help you !!

About

User-micro service act as a boilerplate to make user authentication system of micro services that could be easily integrated in your micro service architecture

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published