@futuresai/member-auth-service

0.0.2-3 • Public • Published

member-auth-service

The membership service backend of moneycom for both authentication and authorization. A set of REST-API powered by Pisma, PostgreSQL, Node.js and TypeScript. Will run on docker container and serverless cloud service.

Usage

Prisma

Create prisma schema & .env file in prisma folder

npx prisma init

Introspect database and generate data model in prisma schema

npx prisma introspect

Read prisma schema and generate prisma client

(This command needs to be executed every time the database is updated)

npx prisma generate

Initialize agent

Set agent role permission and products config in src/misc/agentConfig.ts

npm run generate-agent

Migrate users from firebase

This command will generate report in logs/

npm run migrate-user

Build TypeScript

Compile typescript files and output to dist/

npm run build-ts

Start Server after compiled

npm run serve

Development

Automatically restarting the node application when file changes in the directory are detected.

npm run watch-server

Readme

Keywords

none

Package Sidebar

Install

npm i @futuresai/member-auth-service

Weekly Downloads

14

Version

0.0.2-3

License

UNLICENSED

Unpacked Size

2.99 kB

Total Files

3

Last publish

Collaborators

  • gn9635201
  • pleasurazy