https://github.com/byteball/oswap-token-backend
https://github.com/byteball/oswap-token-backend
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/byteball/oswap-token-backend
- Owner: byteball
- Created: 2023-04-04T08:16:50.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-09T09:05:04.000Z (over 1 year ago)
- Last Synced: 2025-04-14T14:17:22.237Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://token.oswap.io/
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# oswap token backend
## Installation
Install node.js 14+, clone the repository, then
`npm install`
By default the API is accessible at `http://localhost:3005`. You may want to setup a reverse proxy like Nginx to make it accessible on a public url.
## ENV
Copy the appropriate .env.XXXX file to .env and changing it
## Run
`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:3005;
}
location ~ \.(js|ico|svg|css|png|jpeg|json) {
root /path/to/build;
}
}