This project, part of a challenge proposed by Cubos Academy, aims to create an API for a digital bank with various banking functionalities, such as account opening, transactions, and balance inquiries.
Follow these instructions to run the project in your local environment.
- You'll need Git and Node.js installed on your computer to build this app.
- Additionally, having an editor like VSCode for coding is quite advantageous.
# Clone the project and access the folder
$ git clone https://github.com/hamomgs/digital-bank-api.git
$ cd digital-bank-api
# Install the dependencies
$ npm install
# Run the application in development mode.
$ npm run dev
# The application will be accessible on port:3000 via http://localhost:3000.
http://localhost:3000/api
GET /contas?senha_banco=Cubos123Bank
: List all accounts.POST /contas/
: Create a new account.PUT /contas/:numeroConta/usuario
: Update account information.DELETE /contas/:numeroConta
: Delete an account.GET /contas/saldo?numero_conta=123&senha=123
: Get account balance.GET /contas/extrato?numero_conta=123&senha=123
: Get account statement.
POST /transacoes/depositar
: Make a deposit.POST /transacoes/sacar
: Make a transfer.POST /transacoes/transferir
: Make a withdrawal.
digital-bank/
โโโ node_modules/
โโโ src/
โ โโโ controllers/
โ โ โโโ accountsController.js
โ โ โโโ transactionsController.js
โ โโโ middlewares/
โ โ โโโ validatePassword.js
โ โโโ routes/
โ โ โโโ accountsRoutes.js
โ โ โโโ index.js
โ โ โโโ transactionsRoutes.js
โ โโโ database.js
โ โโโ index.js
โโโ .gitignore
โโโ LICENCE
โโโ package-lock.json
โโโ package.json
โโโ README.md
This project is under the license MIT.
Made with ๐งก by Hamom Silva ๐๐ฝ Get in Touch!