Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

microservices-demo/user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e1a79e7 · Dec 5, 2023
Jan 26, 2021
Apr 28, 2017
Sep 11, 2017
Dec 22, 2016
Jan 14, 2021
Apr 3, 2017
Dec 15, 2016
Nov 1, 2016
Apr 3, 2017
Mar 21, 2017
Mar 21, 2017
Aug 9, 2016
Jan 29, 2018
Dec 5, 2023
Dec 20, 2016
Apr 28, 2017
Apr 28, 2017
Apr 28, 2017
Apr 26, 2018

Repository files navigation

DEPRECATED: User Service

Build Status Coverage Status Go Report Card

This service covers user account storage, to include cards and addresses

Bugs, Feature Requests and Contributing

We'd love to see community contributions. We like to keep it simple and use Github issues to track bugs and feature requests and pull requests to manage contributions.

API Spec

Checkout the API Spec here

Build

Using Go natively

make build

Using Docker Compose

docker-compose build

Test

make test

Run

Natively

docker-compose up -d user-db
./bin/user -port=8080 -database=mongodb -mongo-host=localhost:27017

Using Docker Compose

docker-compose up

Check

curl http://localhost:8080/health

Use

Test user account passwords can be found in the comments in users-db-test/scripts/customer-insert.js

Customers

curl http://localhost:8080/customers

Cards

curl http://localhost:8080/cards

Addresses

curl http://localhost:8080/addresses

Login

curl http://localhost:8080/login

Register

curl http://localhost:8080/register

Push

make dockertravisbuild

Test Zipkin

To test with Zipkin

make
docker-compose -f docker-compose-zipkin.yml build
docker-compose -f docker-compose-zipkin.yml up

It takes about 10 seconds to seed data

you should see it at: http://localhost:9411/

be sure to hit the "Find Traces" button. You may need to reload the page.

when done you can run:

docker-compose -f docker-compose-zipkin.yml down