A simple software for managing transactions by uploading and parsing a CNAB file.
The Backend is built with NestJs, using Prisma ORM/(Postgres) as Database and the Frontend with NextJs using MUI for UI components.
Ths repository has a minimal CI/CD setup via Github Actions, that automatically builds the application and deploys on Heroku.
Heroku will put the server on sleep after some time, so your first interaction with the demo will be a slower than normally
Clone the project
git clone https://github.com/enias-oliveira/stores-transactions-manager
cd stores-transactions-manager
docker-compose up
Web will be available on localhost:3000 Server on localhost:5500
Go to the backend directory
cd my-project
Go to the backend directory
cd backend
Install dependencies
npm install
Start the server
npm run start
Go to the frontend directory
cd ../frontend
Install dependencies
npm install
Start the server
npm run dev
Web will be available on localhost:3000 Server on localhost:5501
- There is support for Nix-shell, try it out, its awesome!
- The /api/ prefix is not required if fetching directly from the server, only if fetching via NextJs Frontend that acts as a proxy
GET /api/stores
GET /api/stores/${id}
GET /api/stores/${id}/transactions
GET /api/transactions
GET /api/transactions
POST /api/transactions/upload
- File must be send via multipart form
Parameter | Type | Description |
---|---|---|
file | File |
Required. List of transactions following CNAB specification |