Git Product home page Git Product logo

lendsqr-be-test's Introduction

lendsqr-be-test.

Demo Credit is a mobile lending app that requires wallet functionality. This is needed as borrowers need a wallet to receive the loans they have been granted and also send the money for repayments.

Local Installation guide

First, you need to clone this repo to your device by running the following on terminal

git clone https://github.com/tunjiNg01/lendsqr-be-test..git

After the repo is cloned, open your favorite text editor and navigate to the project file and run npm install in the terminal, this will install all dependency

Lastly, import the DB schema into your local database and ensure your connection parameters are correct, the DB schema will be found in the asset folder in the src directory

Dependencies and their uses

express: Used for server setup

typescript: To ensure type safety and prevent avoidable bugs

bcrypt: This is used for password encryption

concurrently: Used to run multiple commands concurrently.

cookie-parser: Used as middleware that parses cookie header and populates the request object with req.cookies

cors: Used as a middleware that can be used to enable CORS with various options.

jsonwebtoken: Used for token encription

dotenv: Used to provide an environment variable

express-rate-limit: Used as a middleware to limit the number of requests from a certain IP address to prevent DDOS attacks or prevent malicious bot activities

knex: User as ORM for database activities

rimraf: Used to remove existing typescript generated dist folder before creating a new one

ER - Diagram

ER Diagram

Folder Structure

  • src ๐Ÿ“: The source directory contains all the project files.
    • models ๐Ÿ“: This folder contains the DB connection instance and some type of interface
    • controller ๐Ÿ“: This folder contains all the API controller files
    • routes ๐Ÿ“: This folder contains all the route files
    • helper ๐Ÿ“: This folder contain some reusable utility function
    • app.ts ๐Ÿ—ƒ๏ธ: This is where the app is scaffolded
    • server.ts ๐Ÿ—ƒ๏ธ: This is the entry point of the application
  • asset ๐Ÿ“: This folder contains the DB schema and the ER- diagram
  • package.json ๐Ÿ—ƒ๏ธ: This file contains the application info, script, and dependencies.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.