Skip to content

Project which creates financial transactions between accounts, linked to a PostgreSQL database

Notifications You must be signed in to change notification settings

PhilipLages/ng_cash_challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NG.CASH Challenge

This is a dockerized application with MSC architecture, developed with the dimensions of a mobile device in mind. For a better experience, go to inspect and enable mobile mode on device toolbar.

Demo

Features

  • Creating an account;
  • Logging into an account;
  • Creating financial transactions between users;
  • Listing transactions for logged users;
  • Protection by authentication.

Tech Stack

Client: React, TypeScript, Context API, CSS3,

Server: Node, Express, TypeScript, Prisma ORM, JWT

DataBase: PostgreSQL

Run locally

Clone the repository

  git clone [email protected]:PhilipLages/ng_cash_challenge.git

go to project's directory

  cd ng_cash_challenge

Start containers

  docker-compose up -d

Backend

Attach to backend container

  docker exec -it ng_cash_challenge_backend bash

Install dependencies

  npm install

Create database

  npm run migration

Start server

  npm run dev

Frontend

Attach to frontend container

  docker exec -it ng_cash_challenge_frontend bash

Install dependencies

  npm install

Start App

  npm run dev

Access http://localhost:3000

Back-End: API and Endpoints

base URL

  http://localhost:3001

Create new account

  POST /users/signup
Parameters Type
username string
password string

Login

  POST /users/login
Parameters Type
username string
password string

Get a user account

  GET /users/:id
Parameters Type
id number

Create new transaction

  POST /users/:id/transactions
Parameters Type
username string
value number
id number

Get all transactions by a specific user

  GET /users/:id/transactions
Parameters Type
id number

About

Project which creates financial transactions between accounts, linked to a PostgreSQL database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published