Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Traefik | 43,363 | 18 | a day ago | 160 | September 16, 2022 | 624 | mit | Go | ||
The Cloud Native Application Proxy | ||||||||||
Kong | 35,022 | 9 hours ago | 237 | apache-2.0 | Lua | |||||
🦍 The Cloud-Native API Gateway | ||||||||||
Awesome Docker | 25,479 | 6 hours ago | 1 | apache-2.0 | ||||||
:whale: A curated list of Docker resources and projects | ||||||||||
Eshoponcontainers | 23,354 | 2 days ago | 45 | mit | C# | |||||
Cross-platform .NET sample microservices and container based application that runs on Linux Windows and macOS. Powered by .NET 7, Docker Containers and Azure Kubernetes Services. Supports Visual Studio, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor. | ||||||||||
Generator Jhipster | 20,639 | 4,666 | 186 | 3 hours ago | 267 | September 02, 2022 | 288 | apache-2.0 | TypeScript | |
JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures. | ||||||||||
Awesome Kubernetes | 13,953 | a day ago | 11 | other | Shell | |||||
A curated list for awesome kubernetes sources :ship::tada: | ||||||||||
Jib | 12,825 | 10 | a day ago | 21 | August 30, 2022 | 169 | apache-2.0 | Java | ||
🏗 Build container images for your Java applications. | ||||||||||
Piggymetrics | 12,377 | 13 days ago | 14 | mit | Java | |||||
Microservice Architecture with Spring Boot, Spring Cloud and Docker | ||||||||||
Apisix | 11,972 | a day ago | 681 | apache-2.0 | Lua | |||||
The Cloud-Native API Gateway | ||||||||||
Kubeshark | 9,141 | 4 days ago | 80 | apache-2.0 | Go | |||||
The API traffic analyzer for Kubernetes providing real-time K8s protocol-level visibility, capturing and monitoring all traffic and payloads going in, out and across containers, pods, nodes and clusters.. Think TCPDump and Wireshark re-invented for Kubernetes |
Check out the blog post.
Fork/Clone this repo
Download Docker (if necessary)
Make sure you are using a Docker version >= 17:
$ docker -v
Docker version 17.03.0-ce, build 60ccb22
$ export NODE_ENV=development
Register with the OpenWeatherMap API, and add the key as an environment variable:
$ export OPENWEATHERMAP_API_KEY=YOUR_KEY_HERE
Build the images:
$ docker-compose build
Run the containers:
$ docker-compose up -d
With the apps up, run:
$ sh migrate.sh
Test out the following services...
Endpoint | HTTP Method | CRUD Method | Result |
---|---|---|---|
/users/ping | GET | READ | pong |
/users/register | POST | CREATE | add a user |
/users/login | POST | CREATE | log in a user |
/users/user | GET | READ | get user info |
Endpoint | HTTP Method | CRUD Method | Result |
---|---|---|---|
/locations/ping | GET | READ | pong |
/locations | GET | READ | get all locations |
/locations/user | GET | READ | get all locations by user |
/locations/:id | GET | READ | get a single location |
/locations | POST | CREATE | add a single location |
/locations/:id | PUT | UPDATE | update a single location |
/locations/:id | DELETE | DELETE | delete a single location |
Endpoint | HTTP Method | CRUD Method | Result |
---|---|---|---|
/ | GET | READ | render main page |
/login | GET | READ | render login page |
/login | POST | CREATE | log in a user |
/register | GET | READ | render register page |
/register | POST | CREATE | register a new user |
/logout | GET | READ | log a user out |
/add | POST | CREATE | add a new location |
/user | GET | READ | get user info |
To access, get the container id from docker ps
and then open psql
:
$ docker exec -ti <container-id> psql -U postgres
With the app running, update the NODE_ENV environment variable and then run the tests
:
$ export NODE_ENV=test
$ docker-compose up -d
$ docker-compose run tests npm test
Update NODE_ENV
when you're ready to develop again:
$ export NODE_ENV=development
$ docker-compose up -d
To stop the containers:
$ docker-compose stop
To bring down the containers:
$ docker-compose down
Want to force a build?
$ docker-compose build --no-cache
Remove images:
$ docker rmi $(docker images -q)
Run unit and integration tests:
$ export NODE_ENV=test
$ docker-compose up -d
$ docker-compose run users-service npm test
$ docker-compose run locations-service npm test