@thermopylae/demo.express
v1.0.1
Published
Demo application of the Thermopylae framework using ExpressJS.
Downloads
2
Maintainers
Readme
Demo application of the Thermopylae framework using ExpressJS.
Install
npm install @thermopylae/demo.express
Postinstall
Although farmhash, a dependency used by this package, has prebuilt binaries it would be recommended to rebuild them.
npm rebuild --build-from-source farmhash
Also, please consider to update geoip-lite local database.
Description
This package contains an implementation of authentication service using Thermopylae framework.
Prerequisites
Configuration Files
The following config files need to be created. ├─ redis │ ├─ regular.json │ └─ subscriber.json └─ app.json └─ authentication.json └─ email.json └─ geoip.json └─ jwt.json └─ logger.json └─ mysql.json └─ sms.json
Environment Variables
The CONFIG_FILES_PATH env var needs to be set with a value equal to directory absolute path where application config files described in previous step are located.
Databases
MySQL 8 and Redis 6 Server instances need to be started. Keyspace notification events need to be enabled on Redis Server. Apache Kafka broker needs to be started.
Usage
import { bootstrap } from '@thermopylae/demo.express';
bootstrap();
Author
👤 Rusu Marin
- GitHub: @marinrusu1997
- Email: [email protected]
- LinkedIn: @marinrusu1997
📝 License
Copyright © 2021 Rusu Marin. This project is MIT licensed.