https://github.com/byteball/prediction-markets-backend
Prediction markets based on bonding curves https://prophet.ooo
https://github.com/byteball/prediction-markets-backend
bonding-curve bonding-curves dapp decentralized decentralized-application decentralized-applications decentralized-finance defi distributed-ledger-technology dlt obyte prediction-market prediction-markets sports-betting
Last synced: 6 months ago
JSON representation
Prediction markets based on bonding curves https://prophet.ooo
- Host: GitHub
- URL: https://github.com/byteball/prediction-markets-backend
- Owner: byteball
- License: mit
- Created: 2022-04-21T12:51:10.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-17T10:58:23.000Z (8 months ago)
- Last Synced: 2025-04-14T14:17:18.981Z (6 months ago)
- Topics: bonding-curve, bonding-curves, dapp, decentralized, decentralized-application, decentralized-applications, decentralized-finance, defi, distributed-ledger-technology, dlt, obyte, prediction-market, prediction-markets, sports-betting
- Language: JavaScript
- Homepage: https://prophet.ooo
- Size: 1.43 MB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prediction markets backend
## Installation
Install node.js 14+, clone the repository, then
`npm install`
By default the API is accessible at `http://localhost:5000` (`http://localhost:5001` for testnet). You may want to setup a reverse proxy like Nginx to make it accessible on a public url.
## Warning
Frontend and backend must be in the same directory and keep original folder names
## Run
`npm run load-emblems` (once upon first launch)
`npm run start`## Nginx
```text
server {
listen 80;
server_name localhost;location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://127.0.0.1:4200;
}location ~ \.(js|ico|svg|css|png|jpeg|json) {
root /path/to/build;
}
}
```## Donations
We accept donations through [Kivach](https://kivach.org) and forward a portion of the donations to other open-source projects that made Prophet possible.
[](https://kivach.org/repo/byteball/prediction-markets-backend)