A new Information Center for JSS Academy of Technical Education, Noida.
The production HTTP_200 server is running on Ubuntu, so this is probably the easiest environment in which to get things running, but other distributions of linux should be fine as well. We use Apache on the production server, but HTTP_200 will run standalone for testing as well.
The development environment relies on using a Python virtual environment for tools and portability across platforms. Ensure that you have Python Pip installed for your platform before proceeding with these instructions.
Windows users can use the following guide. Specifically, get Python installed and then use the get-pip.py installer once Python is working
OSX users can use the built in version of Python as long as Pip is available, or better, install Brew and Python.
Linux users should have Python already installed. Ensure Pip is installed via your package manager and you should be all set.
HTTP_200 is built very cleanly. For setting the development environment on your machine, you need to follow the steps described in the next section.
Note: Ubuntu 14.04 LTS is recommended to use for the development environment.
-
Run the following git clone (specify a directory of your choosing if you like):
git clone https://github.com/ncs-jss/HTTP_200.git http_200
-
Run virtualenv on the git cloned directory to setup the Python virtual environment:
virtualenv http_200
-
cd into the name of the directory into which you cloned the git repository
cd http_200
-
Activate the virtual environment:
source bin/activate
-
After activating the virtual environment, install the dependencies
pip install -r requirements/common.txt pip install -r requirements/dev.txt (For development)
-
Now, create the database migrations so as to use the Database
python manage.py syncdb
-
For creating groups, run the following command
python manage.py createdata
-
(Optional) For creating random faculties, students and notices
python manage.py createdata --dummydata
this will create:
- faculty_admin: username = admin, password = admin
- student_admin: username = student, password = student
- 20 other faculties' and students' accounts with password = default
-
You are all set. Run the final command
python manage.py runserver
-
Its time to rock. Visit http://localhost:8000 in your browser and you should be all set.