1.0.1 • Published 2 years ago

@thermopylae/demo.express v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

📝 License

Copyright © 2021 Rusu Marin. This project is MIT licensed.