Giter VIP home page Giter VIP logo

evaexchange's Introduction

EvaExchange Backend API Welcome to the EvaExchange Backend API! This project is a part of a trading game developed to educate users on the terminology used in trading shares. It features RESTful APIs for executing BUY and SELL trading operations.

Getting Started These instructions will guide you on setting up your project locally. To get a local copy up and running, follow these simple steps.

Install NPM packages: npm install

Create a .env file in the root directory and update it with your database credentials:

DB_HOST=your_database_host DB_PORT=your_database_port DB_USERNAME=your_database_username DB_PASSWORD=your_database_password DB_DATABASE=your_database_name

Run the application: For development: npm run dev

To run unit tests: npm test

Usage This API provides endpoints for buying and selling shares:

POST /trade/buy: To buy shares. POST /trade/sell: To sell shares. Refer to the included Postman collection for detailed API usage.

Cron Job A cron job is set up to update share prices hourly. This can be observed in the logs.

Notes The database is automatically initialized with dummy data for easy testing. Ensure the database credentials in the .env file are correct to avoid connection issues. Contact Orçun Furkan Türkol - [email protected]

evaexchange's People

Contributors

orcunturkol avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.