Skip to content

ostdotcom/kit-web

 
 

Repository files navigation

Pre Setup

  • Install nginx
> brew install nginx
  • Modify nginx config file
> vim /usr/local/etc/nginx/nginx.conf
    server {
        listen       8080;
        server_name  developmentost.com;
        
        location /api/ {
            proxy_pass http://developmentost.com:4001;
        }

        location / {
            proxy_pass http://developmentost.com:3001;
        }
    }
    server {
        listen       8080;
        server_name  kyc.developmentost.com;
        
        location /api/ {
            proxy_pass http://kyc.developmentost.com:4000;
        }

        location / {
            proxy_pass http://kyc.developmentost.com:3000;
        }
    }
    server {
        listen       8080;
        server_name  sale.developmentsimpletoken.org;
        
        location /api/ {
            proxy_pass http://sale.developmentsimpletoken.org:4000;
        }

        location / {
            proxy_pass http://sale.developmentsimpletoken.org:3000;
        }
    }
    server {
        listen       8080;
        server_name  kit.developmentost.com;
        
        location /api/ {
            proxy_pass http://kit.developmentost.com:4001;
        }
        
        location /testnet/api/ {
            proxy_pass http://kit.developmentost.com:4001/testnet/api;
        }

        location / {
            proxy_pass http://kit.developmentost.com:3001;
        }
    }
    server {
        listen       8080;
        server_name  view.developmentost.com;

        location / {
            proxy_pass http://view.developmentost.com:7000;
        }
    }
    server {
        listen       8080;
        server_name  api.developmentost.com;

        location / {
            proxy_pass http://api.developmentost.com:7001;
        }
    }
  • Add custom host
> sudo vim /etc/hosts

127.0.0.1       developmentsimpletoken.org
127.0.0.1       sale.developmentsimpletoken.org
127.0.0.1       developmentost.com
127.0.0.1       kit.developmentost.com
127.0.0.1       kyc.developmentost.com
127.0.0.1       view.developmentost.com
127.0.0.1       api.developmentost.com

Start Web Services

  • Start nginx
> sudo brew services restart nginx
  • Start Rails
> bundle install
> source set_env_vars.sh
> rails s -p 3001

#Go to browser http://kit.developmentost.com:8080/

About

OST KIT Web Interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 53.5%
  • HTML 28.8%
  • Ruby 9.5%
  • SCSS 6.9%
  • CSS 1.2%
  • Shell 0.1%