Giter Site home page Giter Site logo

yangxin1994 / myems-admin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ljw-junwei/myems-admin

0.0 0.0 0.0 38.19 MB

MyEMS 管理面板 (MyEMS administration panel)

Home Page: https://github.com/myems/myems

JavaScript 89.18% CSS 6.11% HTML 4.70%

myems-admin's Introduction

MyEMS Admin

Introduction

MyEMS 系统管理面板,用于项目配置和系统管理 Providing admin panel for MyEMS system administration and configuration

Codacy Badge Scrutinizer Code Quality Maintainability Total alerts

Prerequisites

nginx-1.18.0 or later

Installation

  • Install NGINX Server

refer to http://nginx.org/en/docs/install.html

  • Configure NGINX
    $ sudo nano /etc/nginx/nginx.conf

Add another new 'server' section, add values as below:

    server {
        listen                 8001;
        server_name     myems-admin;
        location / {
            root    /var/www/html/admin;
            index index.html index.htm;
        }
        -- To avoid CORS issue, use Nginx to proxy myems-api to path /api 
        -- Add another location /api in 'server ', replace demo address http://127.0.0.1:8000/ with actual url
        location /api {
            proxy_pass http://127.0.0.1:8000/;
            proxy_connect_timeout 75;
            proxy_read_timeout 600;
            send_timeout 600;
        }
    }
  • Install myems-admin : Before running the below commands, please compress the myems-admin folder, upload it to the server and extract it to the home.
  $ cd ~/myems-admin
  $ sudo cp -r .  /var/www/html/admin
  $ sudo chmod 0755 -R /var/www/html/admin

Check the config file and change it if necessary:

  $ sudo nano /var/www/html/admin/app/api.js

NOTE:

The 'upload' folder is for user uploaded files. DO NOT delete/move/overwrite the 'upload' folder when you upgraded myems-admin.

 /var/www/html/admin/upload

myems-admin's People

Contributors

codacy-badger avatar guangyuzhang 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.