Skip to content

cosmos-gaminghub/explorer-frontend

Repository files navigation

GAME Explorer Frontend

Prerequisites

  • nodev14.0+

Build Setup

# install dependencies
$ yarn install

# set environment variables
$ cp .envex .env

# serve with hot reload at localhost:3000
$ yarn dev

# build for production and launch server
$ yarn build
$ yarn start

# generate static project
$ yarn generate

For detailed explanation on how things work, check out Nuxt.js docs.

setup with web server

  • nginx(example)
server {
        listen 80;
        listen [::]:80;
        root /var/www/explorer-frontend/dist;
        index index.html;
        server_name game-explorer.io;
        location / {
                try_files $uri $uri/ /index.html;
        }
}

server {
        listen 80;
        listen [::]:80;
        server_name api.game-explorer.io;
        location / {
                proxy_pass    http://localhost:8080;
        }
}

reference