URL: https://ton-explorer.com
Backend: https://github.com/broxus/ton-explorer-backend
- clone this repository
git clone [email protected]:broxus/ton-explorer-frontend.git
cd ton-explorer-frontend
- install dependencies
npm install
- (optional) edit settings in
ton-explorer-frontend/src/environments/environment.ts
rootUrl
- you backend url (see https://github.com/broxus/ton-explorer-backend) - run application using
npm run start
- open
http://localhost:4200/
in your browser
- (only once) install ng-openapi-gen
npm install -g ng-openapi-gen
- copy content of
%you_backend_url%/docs/docs.yaml
toswagger.yml
- run
ng-openapi-gen --input swagger.yml --output src/app/api
in project root
- clone this repository
git clone [email protected]:broxus/ton-explorer-frontend.git
cd ton-explorer-frontend
- install dependencies
npm install
- edit settings in
ton-explorer-frontend/src/environments/environment.prod.ts
rootUrl
- you backend url (see https://github.com/broxus/ton-explorer-backend)authBot
- you auth bot name, set it to null if you want to disable auth - build
npm run build
- copy contents of
dist
folder to your web-server. For example use nginx:
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
}