koistudy2 / server

Web & DB server of koistudy2
6 stars 1 forks source link

koistudy 2


Installing requirements

Python modules

Installing pip (on CentOS/RHEL/Fedora)

$ sudo yum install python-pip 

Installing pip (on Ubuntu)

$ sudo apt-get install python-pip 

Note: Python 2.7.9 and after includes pip by default.

Installing pip (on macOS)

$ curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python
$ sudo easy_install pip

Installing Flask

$ sudo pip install Flask

Installing PyMongo

$ sudo pip install pymongo

MongoDB

macOS

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install mongodb
$ sudo mkdir -p /data/db
$ sudo chmod 777 /data/db
$ mongod

CentOS / Fedora / RHEL (x86_64 system, change baseurl to i686 on i686 system)

CentOS 7

Ubuntu

$ sudo apt-get install -y mongodb

bcrypt

macOS

$ brew install pkg-config libffi
$ export PKG_CONFIG_PATH=/usr/local/[YOUR_USERNAME]/libffi/3.0.13/lib/pkgconfig/
$ sudo pip install bcrypt

CentOS/RHEL/Fedora/Ubuntu

$ sudo pip install bcrypt

Let's run!

For Windows User