@thermopylae/demo.express
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@thermopylae/demo.express

Version Node Version License: MIT

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.

Package Sidebar

Install

npm i @thermopylae/demo.express

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

153 kB

Total Files

92

Last publish

Collaborators

  • marinrusu1997