An open API service indexing awesome lists of open source software.

https://github.com/rechain-network-solutions/prediction-markets-backend

We accept donations through KatyaAI and forward a portion of the donations to other open-source projects that made Prophet possible.
https://github.com/rechain-network-solutions/prediction-markets-backend

market-intelligence oscript oscript-lib oscript-library oscript-package oscript-web oscript-weboscr postgresql postgresql-database prediction prediction-model predictive-analytics predictive-modeling typescript typescript-library typescript-react

Last synced: 6 months ago
JSON representation

We accept donations through KatyaAI and forward a portion of the donations to other open-source projects that made Prophet possible.

Awesome Lists containing this project

README

          

# ๐ŸŽฏ REChain Prediction Markets Backend

This is the backend core of the **REChain Prediction Markets** platform โ€” a decentralized infrastructure for event-based markets. It supports the creation, trading, resolution, and payout of predictions on real-world and on-chain outcomes.

## ๐Ÿ” Features

- Market creation and trading engine
- Oracle-based event resolution
- Modular support for multiple event types
- Secure, decentralized backend logic
- Designed for integration with REChain frontend & DAO

## ๐Ÿ“ Project Structure

```
Prediction-markets-backend/
โ”œโ”€โ”€ src/ # Backend services
โ”œโ”€โ”€ contracts/ # Smart contracts for prediction logic
โ”œโ”€โ”€ scripts/ # Deployment and automation scripts
โ”œโ”€โ”€ tests/ # Unit and integration tests
โ”œโ”€โ”€ docs/ # Documentation
โ””โ”€โ”€ README.md
```

## ๐Ÿš€ Getting Started

```bash
git clone https://github.com/REChain-Network-Solutions/Prediction-markets-backend.git
cd Prediction-markets-backend
npm install
```

## ๐Ÿงช Running the Backend

Use environment variables to configure the backend:

```env
PORT=3000
DATABASE_URL=mongodb://localhost:27017/prediction
PRIVATE_KEY=your_private_key
```

Start the development server:

```bash
npm run dev
```

## ๐Ÿงช Testing

```bash
npm test
```

## ๐Ÿ“„ License

MIT ยฉ REChain Network Solutions