Skip to content

Drikkx/trader-orderbook

 
 

Repository files navigation

Orderbook API

Description

This project is an API for managing an order book. It uses TypeScript with Express for the backend and Prisma for database management. The project also incorporates tools to work with Ethereum smart contracts using Ethers.js.

Installation

Prerequisites

Node.js (v14 or higher) npm or yarn

Clone the Repository

git clone [Repository URL]
cd orderbook-api

Install Dependencies

npm install
# or
yarn install

Available Scripts

Build: Compile TypeScript to JavaScript.

npm run build

Develop:

Run the server in development mode with hot-reloading.

npm run dev

Formatter:

Format the code according to Prettier rules.

npm run prettier

Type Checking:

Check types without compiling the code.

npm run typecheck

Prisma:

Pull schema from database:

npm run prisma:pull

Generate Prisma client:

npm run prisma:generate

Open Prisma Studio:

npm run prisma:studio

Start Discord Bot:

npm run dev-bot

Run the application in production:

npm start

Configuration

Environment Variables:

Copy .env.example to .env and fill in the necessary variables.

Technologies Used

Backend:

Express.js for the web server. Prisma for ORM and database management.

Blockchain:

Ethers.js to interact with Ethereum.

Others:

TypeScript for static typing. Jest for unit testing. Prettier and TSLint for code formatting and linting. Discord.js for Discord integration.

License

This project is licensed under the MIT License (LICENSE).

Please adapt or complete this file according to the specifics of your project, such as adding sections on API documentation, usage examples, or security information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.6%
  • Other 0.4%