Giter Club home page Giter Club logo

mmflow's Introduction

MM-Flow Application

Local deployment instructions

One time setup

  • Install Docker
  • Install Docker Compose
  • Install SQLite Database (Optional)
    sudo apt-get install sqlite3
  • Install Nginx
    Edit server block in /conf/nginx.conf to configure Nginx
    listen       80;
    listen       [::]:80;
    server_name mmflow.mehtasanket-dev.in;
    location / {
        proxy_pass http://localhost:8080;
    }
    
  • Install nodejs, npm
    curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
    sudo apt-get install -y nodejs
    sudo apt-get install -y npm
    

Start local instance

  • Start Nginx: start nginx
  • Run containers: ./local-run.sh

Access the site at http://mmflow.mehtasanket-dev.in/


Cloud deployment instructions

VM Creation

  • Create new VM on GCP (Google cloud platform)
  • sudo apt-get update
  • VPC Network > External IP addresses

DNS route setup

  • Cloud DNS > add record set > setup external IP address

Nginx proxy Setup

(https://www.linode.com/docs/web-servers/nginx/how-to-install-nginx-ubuntu-18-04/)

  • sudo apt-install nginx
  • vim /etc/nginx/sites-available/mehtasanket.in
    server {
        listen 80;
        server_name mmflow.mehtasanket.in;
        location / {
            proxy_pass "http://127.0.0.1:8080";
        }
    }
    server {
        listen 80;
        server_name mmflow-backend.mehtasanket.in;
        location / {
            proxy_pass "http://127.0.0.1:8090";
        }
    }
    
  • sudo ln -s /etc/nginx/sites-available/mehtasanket.in /etc/nginx/sites-enabled/
  • sudo nginx -t # To verify rules
  • sudo nginx -s reload # To reload rules
  • systemctl status nginx

Sqlite setup

(https://linuxhint.com/install_sqlite_browser_ubuntu_1804/)

  • sudo apt-get install sqlite3

Project setup

  • (One time) git clone https://github.com/mehtasankets/mmflow.git
  • cd mmflow
  • git pull
  • (One time) cp prod-env.list-tmpl prod-env.list
  • (One time) Edit prod-env.list to populate environment variables
  • Run db query versions if any
  • docker-compose down
  • ./run.sh

Copy over file from oracle cloud to windows machine

Run following command on powershell

pscp -P 22 -scp -i C:\work\personal\OracleCloud\for-putty.ppk  ubuntu@<IP_ADDRESS>:/home/ubuntu/databases/expenses.csv .

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.