Status: | Under Development |
Location: | http://github.com/chartera/nodemicro |
Version: | 0.0.1/2 |
regserv is a nodejs single/multi process microservice for account management.
Configuration under .env.
- redis
- postgresql
- couchdb
- zmq
For mutli process usage set singleMode = false in .env. (See under the benchmark folder some benchmarks).
$ cd regserv
$ npm install
# install all dependencies in subfolders
$ npm run dev
A supervisor-like wrapper on startup.js for reloading in dev mode.
The registraion process starting with an json post request. By successful request the return value is a unique code, which is needed for a validation request. The validation request is only one time valid, if successful, the return value is a token. This token is needen to set a password in order to complete the registration.
$ curl -H "Content-Type: application/json" -X POST -d '{"email":"[email protected]"}' http://localhost:4445/api/v1/registration
$ curl http://localhost:4445/api/v1/invitation_token/<codoe>
- circuit breaker pattern
- zmq as static library.
- sqlite instead postgresql.
- pouchdb-server instead couchdb.
- code cleaning
- complete registraion
- email confirmation request
- session login/logout
- client part for include in a spa
- startup.js without reloding in production
- nodedaemon
- …
- ipc channels stucks sometimes in mutli process mode
- …