To get started, follow the steps below:
1. Create a new file in the /scripts
directory called user_name.txt
. Inside the file, add your GitHub username.
2. Create another file in the /scripts
directory called personal_token.txt
. Inside the file, add your GitHub personal token.
npm run setup:local
docker-compose up install
const RootPath = process.cwd();
const Path = require('path');
const redis = {
host: "redis.local_network",
port: 6379,
password: '',
db: 0,
};
const database = {
type: 'mysql',
connection: {
host: 'db',
port: 3306,
user: 'root',
password: 'ijs@work',
database: 'sc'
}
};
module.exports = {
database: database,
redis: redis,
storage: {
s3: {
endpoint: '',
bucket: '',
key: '',
secret: ''
},
localCache: {
path: 'cache'
}
},
router: {
cors: true,
enabled: true,
port: 8100
},
scheduler: {
enabled: true,
// queue: redis
},
worker: {
enabled: false,
queue: redis
},
domains: {
"127.0.0.1": {
app: Path.join(RootPath, 'repos/sc-domain-marketplace/dist'),
worker: Path.join(RootPath, 'repos/sc-domain-data'),
plugins: {
db: database,
wallet: {
chainId: 43113,
accounts: [],
networks: {
43113: {
provider: 'https://api.avax-test.network/ext/bc/C/rpc'
}
}
},
cache: {
redis: redis
}
}
}
}
}
docker-compose up build
docker-compose up -d redis
cd mysql && docker-compose up -d db
docker-compose up start