Coder Social home page Coder Social logo

vmmaster-frontend's Introduction

vmmaster-frontend

Overview session and tests specific info for vmmaster

Stack of technologies:

Backend part:

Frontend part:

Install dependencies

Dependencies for backend part

pip install -r requirements.txt

Dependencies for frontend part

bash install_dependencies.sh
npm install

Build js bundle for frontend part:

Build static js-bundles (most required)

npm run build

Build static js-bundles without minification and obfuscation

npm run dev:build

Real-time watch for js-files

npm run dev:watch

Configure nginx

cp vmmaster-frontend.conf.template vmmaster-frontend.conf
  • edit vmmaster-frontend.conf
# the upstream component nginx needs to connect to
upstream django {
    server unix:///path/to/vmmaster-frontend/vmmaster-frontend.sock; # for a file socket
}
sudo ln -s /path/to/vmmaster-frontend.conf /etc/nginx/sites-enabled
sudo service nginx restart

Configure uwsgi

cp vmmaster-frontend.ini.template vmmaster-frontend.ini
  • edit vmmaster-frontend.ini
# the base directory (full path)
chdir           = /path/to/vmmaster-frontend
# create a directory for the vassals
sudo mkdir /etc/uwsgi
sudo mkdir /etc/uwsgi/vassals
sudo mkdir /var/log/uwsgi
# symlink from the default config directory to your config file
sudo ln -s /path/to/vmmaster-frontend.ini /etc/uwsgi/vassals/
# run the emperor
uwsgi --emperor /etc/uwsgi/vassals --uid vmmaster --gid vmmaster
# create upstart service
sudo cp /path/to/vmmaster-frontend/vmmaster-frontend.conf.init.template /etc/init/vmmaster-frontend.conf
# create upstart watch server for real-time update data on pages
sudo cp /path/to/vmmaster-frontend/watchserver.conf.init.template /etc/init/watchserver.conf
# run service
sudo service vmmaster-frontend start

Configure settings.py

cd /path/to/vmmaster-frontend/vmmaster_frontend
cp template.settings.py settings.py
  • edit settings.py
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = ''

vmmaster-frontend's People

Contributors

sh0ked avatar nwlunatic avatar z00sts avatar freakygranny avatar skyline-gleb avatar

Stargazers

 avatar  avatar

Watchers

Stashevsky Pavel avatar James Cloos avatar Vitaly Kulpin avatar  avatar Kudzev Artem avatar  avatar Stepan Kolesnikov avatar Hi, I'm jenkins! avatar Denis avatar Kirill Sidenko avatar  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.