https://github.com/stanislav-web/ecs-auth-microservice
Auth microserivice Docker: Nginx -> Node -> Mongo
https://github.com/stanislav-web/ecs-auth-microservice
authentication microservice mongodb nginx nodejs
Last synced: 8 months ago
JSON representation
Auth microserivice Docker: Nginx -> Node -> Mongo
- Host: GitHub
- URL: https://github.com/stanislav-web/ecs-auth-microservice
- Owner: stanislav-web
- License: other
- Created: 2017-10-06T00:52:28.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-19T14:15:05.000Z (about 8 years ago)
- Last Synced: 2025-04-14T23:12:23.119Z (8 months ago)
- Topics: authentication, microservice, mongodb, nginx, nodejs
- Language: JavaScript
- Homepage: https://github.com/stanislav-web/ecs-auth-microservice
- Size: 752 KB
- Stars: 12
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### ECS-AUTH-MICROSERVISE
_(Nginx as foreground, NodeJs as a primary server, MongoDb or Radis for the accounts store)_
| Assembly | Status |
|:-:|:-:|
|Node & Mongo|[](https://travis-ci.org/stanislav-web/ecs-auth-microservice/builds/286316998) |
|Node & Redis|[](https://travis-ci.org/stanislav-web/ecs-auth-microservice/builds/286316998) |
[](https://coveralls.io/github/stanislav-web/ecs-auth-microservice?branch=master) [](https://raw.githubusercontent.com/stanislav-web/ecs-auth-microservice/master/LICENSE)
This assemblage implements REST auth micoservice proxied by Nginx as Reverse Proxy Server.
Represents high scalable architecture for "NodeJS" applications in the form of boundles inside.
 →
 →
 →

##### IMPLEMENTS
- Boundles API
- Koa2
- MongoDb native
- Redis native
- Password encryption
- JWT authentication
##### DEFAULT INSTALL (USE MongoDB)
```bash
docker-compose up --build
```
```bash
sh build/mongo.sh # install with MongoDb (default)
sh build/redis.sh # install with Redis
```
##### CONFIGURATION
```bash
.env
```
##### RUN
```bash
http://localhost:88 # (Nginx 88 => NodeJs 8777)
```
##### RUN AS NODE SERVER
```bash
# STORAGE=redis
npm start
```
##### CHECK MICROSERVICE STATUS
`http://localhost:88/status/:key` (see .env)
```python
HTTP/1.1 200 OK
{
"status": 200,
"message": {
"now":"01:52:51 GMT+0300 (EEST)",
"revision":"62b1b88ef48bb3fe859b2bd374e64576f79e6cca",
"version":"v1.1.2",
"residentSet":"49.8 MB",
"totalHeap":"30.4 MB",
"usedHeap":"16.8 MB",
"uptime":22.969
}
}
```
