Giter Site home page Giter Site logo

inflame-trade-official / ton-explorer-frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from broxus/ton-explorer-frontend

0.0 0.0 0.0 1.17 MB

License: GNU General Public License v2.0

JavaScript 0.43% TypeScript 48.13% HTML 45.37% SCSS 5.70% CSS 0.37%

ton-explorer-frontend's Introduction

FreeTON Blockchain Explorer (frontend)

URL: https://ton-explorer.com
Backend: https://github.com/broxus/ton-explorer-backend

Running in dev mode

  1. clone this repository
    git clone [email protected]:broxus/ton-explorer-frontend.git
    cd ton-explorer-frontend
  2. install dependencies
    npm install
  3. (optional) edit settings in ton-explorer-frontend/src/environments/environment.ts
    rootUrl - you backend url (see https://github.com/broxus/ton-explorer-backend)
  4. run application using npm run start
  5. open http://localhost:4200/ in your browser

Generate services from swagger.yml

  1. (only once) install ng-openapi-gen npm install -g ng-openapi-gen
  2. copy content of %you_backend_url%/docs/docs.yaml to swagger.yml
  3. run ng-openapi-gen --input swagger.yml --output src/app/api in project root

Build prod

  1. clone this repository
    git clone [email protected]:broxus/ton-explorer-frontend.git
    cd ton-explorer-frontend
  2. install dependencies
    npm install
  3. 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
  4. build npm run build
  5. 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;
  }
}

ton-explorer-frontend's People

Contributors

aleksandr-hramcov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.