Skip to content

Commit

Permalink
update: remove oraidex-backend (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
trungbach authored Mar 27, 2024
1 parent 4906add commit 984f542
Show file tree
Hide file tree
Showing 120 changed files with 15 additions and 8,309 deletions.
43 changes: 0 additions & 43 deletions .dockerignore

This file was deleted.

9 changes: 0 additions & 9 deletions .env.example

This file was deleted.

165 changes: 0 additions & 165 deletions .github/workflows/publish_backend.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@ typings/

.npmrc
build
*oraidex-sync-data*

dist
.DS_Store
cache/

packages/contract-state-simulate/public/
coverage
packages/oraidex-server/cache-data.json

.nx/cache
27 changes: 0 additions & 27 deletions Dockerfile

This file was deleted.

37 changes: 0 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,40 +23,3 @@ git checkout packages/contracts-sdk
```bash
NODE_ENV=test yarn --cwd packages/market-maker start
```

# ORAIDEX BACKEND

Oraidex backend is a nodejs server that provides a REST API for aggreated events from a oraidex contracts.

Features:

- Syncronize events from a oraidex smart contract on-chain to a database
- Provide a REST API to query events from the database

## HOW TO RUN

### Local

```sh
cp .env.example .env
yarn && yarn build
cd packages/oraidex-server
node dist/index.js
```

### Docker

```
docker build . -t oraichain/defi_oraidex-backend
docker run -it --rm \
-v $(pwd)/.env:/app/.env \
-v your-db-file.db:/app/your-db-file.db \
oraichain/defi_oraidex-backend
```

## RUN UNIT TESTS

```sh
yarn test
```
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"build-tsc": "tsc -p",
"postbuild": "mkdir -p packages/oraidex-common/build/tronweb && cp -r packages/oraidex-common/src/tronweb/* packages/oraidex-common/build/tronweb",
"deploy": "yarn publish --access public",
"start:server": "yarn build-tsc packages/oraidex-sync/ && npx ts-node-dev packages/oraidex-server/src/index.ts",
"start:sync": "npx ts-node packages/oraidex-sync/src/sync-cmd.ts",
"prepare": "husky install",
"build:docker": "lerna run build --concurrency 1"
},
Expand Down Expand Up @@ -40,7 +38,6 @@
"@types/node": "^20.11.30",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@vercel/ncc": "0.38.1",
"cosmjs-types": "0.8.0",
"cz-conventional-changelog": "^3.3.0",
"dotenv": "^16.4.5",
Expand Down
30 changes: 0 additions & 30 deletions packages/oraidex-server/package.json

This file was deleted.

23 changes: 0 additions & 23 deletions packages/oraidex-server/package.staging.json

This file was deleted.

7 changes: 0 additions & 7 deletions packages/oraidex-server/src/@types/global.d.ts

This file was deleted.

Loading

0 comments on commit 984f542

Please sign in to comment.