Mfund documentation
  • Introduction
  • Setup Guidelines
    • Mfund Flutter App
    • Mfund Backend
  • Technology Used
  • Architecture
  • Database Structure
  • App Flow
    • Dashboard App Flow
    • User App Flow
  • Backend Flow
  • API Documentation
    • Dashboard APIs
    • App APIs
  • Screens
    • App Screens
      • Login Screen
      • Signup Screen
      • KYC Screen
      • Home Screen
      • Investment Screen
      • Profile Screen
      • Withdraw Screen
    • Dashboard Screens
      • Login Screen
      • Home Screen
      • Investment Plan Screen
      • Investors Screen
      • Balances Screen
      • Transaction Details Screen
      • Settings Screen
      • App Bar
Powered by GitBook
On this page
  • Clone Repositories
  • Online PostgreSQL Databases
  • Configuration

Was this helpful?

  1. Setup Guidelines

Mfund Backend

PreviousMfund Flutter AppNextTechnology Used

Last updated 4 years ago

Was this helpful?

Clone Repositories

Mfund Flutter app is a mono repo git project. We need to clone four repositories for flutter app.‌

  • mfund-app

  • mfund-api-service

  • mfund-framework

  • mfund-common-modules

mkdir mfund-backend
cd mfund-server-app
git clone <URL for mfund-server-app>
yarn install // You can use `npm install`
  • Configure Database in config/db-psql.js file.

  • Get the Firebase admin key.json and add it in root directory.

  • Configure Firebase in config/db-firebase.js file

Online PostgreSQL Databases

  • ****

Configuration

// config.env
NODE_ENV=development
PORT=5000
JWT_ISSUER=geekyants
JWT_AUDIENCE=market-mfund-users
JWT_ACCESS_TOKEN_EXPIRES=1d
JWT_REFRESH_TOKEN_EXPIRES=10d
  • JWT token header can be configured from config/config.env.

ElephantSQL
Heroku
AWS RDS