Coder Social home page Coder Social logo

j05u3 / onlinejudgefe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qingdaou/onlinejudgefe

0.0 5.0 0.0 856 KB

A multiple pages app built for OnlineJudge

Home Page: http://v2.qduoj.com/

License: Other

JavaScript 26.03% Shell 0.37% Vue 71.49% HTML 0.54% CSS 1.58%

onlinejudgefe's Introduction

This is a fork with compatibility with a newer nodejs version (8.9.4), fixes for dependencies issues with new nodejs version.

OnlineJudge Front End

vue vuex echarts iview element-ui Build Status

A multiple pages app built for OnlineJudge. Demo

Features

  • Webpack3 multiple pages with bundle size optimization
  • Easy use simditor & Nice codemirror editor
  • Amazing charting and visualization(echarts)
  • User-friendly operation
  • Quite beautiful:)

Get Started

  1. Install nodejs v6.11 first.

  2. Build dist files

    npm install
    npm run build:dll
    npm run build

    The built files are stored in ./dist.

  3. Launch a server

    for example, use nginx:

    server {
        listen 80 default_server;
        server_name _;
    
        location /public {
            root /data;
        }
        location /api {
            proxy_pass http://your-backend;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header Host $http_host;
            client_max_body_size 200M;
        }
        location /admin {
            root /app/dist/admin;
            try_files $uri $uri/ /index.html =404;
        }
        location / {
            root /app/dist;
            try_files $uri $uri/ /index.html =404;
        }
    }

Screenshots

Check here.

Browser Support

Modern browsers and Internet Explorer 10+.

Development

# we use webpack DllReference to decrease the build time,
# this command only needs execute once unless you upgrade the package in build/webpack.dll.conf.js
NODE_ENV=development npm run build:dll

# the dev-server will set proxy table to your backend
export TARGET=http://Your-backend

# serve with hot reload at localhost:8080
npm run dev

LICENSE

MIT

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.