Skip to content

drakkentech-team/riskfin-portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Riskfin Admin Portal Basic Setup

Install

npm install

Compile and Hot-Reload for local development

npm run dev

Riskfin Admin Portal Production Setup

Install

npm install

Type-Check, Compile and Minify for Production

npm run build

Host with Nginx

Install

sudo apt install nginx

Setup config

sudo vim /etc/nginx/sites-available/riskfin-portal
server {
        listen 80;
        server_name ip_address;

        location / {
                root /home/ubuntu/riskfin-portal/dist;
                try_files $uri $uri/ /index.html;
        }

        location /api/ {
                proxy_pass http://localhost:9000;
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;
        }

        location = /favicon.ico {
                return 204;
                access_log off;
                log_not_found off;
        }
}
sudo ln -s /etc/nginx/sites-available/riskfin-portal /etc/nginx/sites-enabled/
sudo systemctl restart nginx

Add permissions

sudo chmod o+x /home
sudo chmod o+x /home/ubuntu
sudo chmod o+x /home/ubuntu/riskfin-portal
sudo chmod o+x /home/ubuntu/riskfin-portal/dist

Note

You will need to request an .env file, as well as a bearer token from the lead developer in order for this project to run.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors