GithubHelp home page GithubHelp logo

acdream's Introduction

ACdream Online Judge v1.0.2

如何快速搭建(ubuntu下测试通过)

安装依赖

$ sudo apt-get update
$ sudo apt-get install g++ curl libssl-dev apache2-utils
$ sudo apt-get install python-software-properties
$ sudo apt-get install imagemagick
$ sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++

安装node.js

$ sudo add-apt-repository ppa:chris-lea/node.js 
$ sudo apt-get update
$ sudo apt-get install nodejs

安装mongodb数据库

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

数据库初始化

$ cd ACdream
$ mongorestore -h localhost -d gzhu_db --directoryperdb gzhu_db -drop

安装依赖模块

$ cd ACdream
$ sudo npm i

如果上面的"sudo npm i"等很久都没反应,安装并使用nrm切换到其他registry,然后重试

$ sudo npm i -g nrm
$ nrm ls
$ nrm use cnpm

运行app

$ cd ACdream
$ node app.js

acdream's People

Contributors

kidx avatar wangkechun avatar

Watchers

 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.