Skip to content

mrnpro/EKUB-backend-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EKUB-backend-node

EKUB-backend-node is a backend application developed in JavaScript for managing user accounts and transactions.

Table of Contents

Introduction

EKUB-backend-node is a Node.js application built to handle user accounts and transactions. It provides a set of API endpoints to create and manage user accounts, deposit and withdraw funds, and retrieve account information. The application is built using JavaScript and utilizes various libraries and frameworks for seamless operation.

Installation

To install and set up the EKUB-backend-node application, follow these steps:

  1. Clone the repository: git clone https://github.com/mrnpro/EKUB-backend-node.git

  2. Navigate to the project directory: cd EKUB-backend-node

  3. Install the dependencies using npm: npm install

  4. Set up the environment variables by creating a .env file.

  5. Start the application: npm start

  6. The application will be running on http://localhost:3000 by default.

Usage

Once the EKUB-backend-node application is up and running, you can interact with it using the provided API endpoints. Here are some common use cases:

  1. Creating a user account: Send a POST request to /api/users with the required user details to create a new user account.

  2. Depositing funds: Send a POST request to /api/accounts/deposit with the account ID and deposit amount to add funds to the account.

  3. Withdrawing funds: Send a POST request to /api/accounts/withdraw with the account ID and withdrawal amount to deduct funds from the account.

  4. Retrieving account information: Send a GET request to /api/accounts/:accountId to fetch the account details, including the account balance and transaction history.

Please refer to the API Reference section below for detailed information on all available endpoints and their usage.

API Reference

The EKUB-backend-node API provides the following endpoints:

  • POST /api/users: Create a new user account.
  • POST /api/accounts/deposit: Deposit funds into an account.
  • POST /api/accounts/withdraw: Withdraw funds from an account.
  • GET /api/accounts/:accountId: Retrieve account information.

For detailed information on request and response formats, please refer to the API documentation available within the source code.

Contributing

Contributions to EKUB-backend-node are welcome! If you have any suggestions, bug reports, or feature requests, please create an issue on the repository. If you'd like to contribute code changes, you can submit a pull request with your proposed changes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published