Install MongoDB
git clone https://github.com/Lamden/block-explorer-api.git
cd block-explorer-api
npm install
nano config/lamden.js
module.exports = ({ env }) => ({
masternodes: ["https://masternode-01.lamden.io", "https://masternode-02.lamden.io"]
});
- Generate a secure token.
openssl rand 64 | base64
- Create .env file in root of the block-explorer-api directory
nano .env
- Add token info (ctrl-x, "y" to exit and save)
ADMIN_JWT_SECRET=token_generated_above
URL=http://127.0.0.1/api
npm run develop
- Download PM2
npm install pm2 -g
- Run with PM2
pm2 start npm --name "block-explorer-api" -- run prod-nowipe
Login to the admin console at http://localhost:1337/admin
- Navigate to set the user permissions
- Click "Public"
- Under Application click "Select All" beside each Section
- Deselect "count", "create" and "delete" for each Section
- Click "Save"