GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dumbbellcode/LoanManagementSystemRCU: Loan management system using Nodejs + Postgres.

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
__tests__
__tests__
 
 
config
config
 
 
controllers
controllers
 
 
methods
methods
 
 
middlewares
middlewares
 
 
migrations
migrations
 
 
models
models
 
 
routes
routes
 
 
seeders
seeders
 
 
services
services
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
app.js
app.js
 
 
docker-compose.yml
docker-compose.yml
 
 
entrypoint.sh
entrypoint.sh
 
 
index.js
index.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

LoanManagementSystemRCU

Setup with Docker

This docker compose has two containers, the node application and postgres:13.

docker-compose build
docker-compose up 

After docker compose, the app container is available externally on machine port 8080 and database container is externally available on machine port 2345.
While running the app container it automatically sets up migration and seeds the db using shell script entrypoint.sh.

Testing postgres container from outside

npm i  //install packages locally 
docker-compose up -d postgres_cont //start the postgres container 
npm run test // run tests locally 

Setup without Docker

Clone the repo

git clone https://github.com/Sudheer121/LoanManagementSystemRCU.git

Install packages

npm install 

Convert .env.example to .env

cp .env.example .env  

Start an empty Postgres db with name rcu

Run migrations

npx sequelize-cli db:migrate

Seed/Populate the database

npx sequelize-cli db:seed:all

Run sample tests

npm test

Start the server

node index.js

Code Features

  • Multiple roles for accessing apis i.e customer, agent, admin.
  • API authorization according to roles added
  • Tests added with jest
  • Seeds added for quick start
  • MVCS architecture in NodeJs
  • DAO layer inside services, can be improved.

About

Loan management system using Nodejs + Postgres.

Topics

dockerdocker-composeexpressjsjestmvcsnodejspostgressequelizesequelize-cli

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.