Skip to content
This repository was archived by the owner on Dec 1, 2018. It is now read-only.

icists/ams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

578f19d · Aug 18, 2017
Jul 4, 2017
Jun 4, 2017
Apr 30, 2017
Aug 21, 2016
May 30, 2017
Aug 18, 2017

Repository files navigation

ICISTS AMS (Application Management System)

Requirements for installation

There are a few packages that need to be installed before running this django application.

  • python
  • mysql-server
  • libmysqlclient-dev

In Ubuntu, these can be installed by the following command:

$ sudo apt-get install [package-name]

At the project directory, run install.sh, which contains the following commands:

$ virtualenv env
$ source env/bin/activate
(env)$ pip install -r requirements.txt

More items to be prepared

ams_base/icists/mysql.cnf
ams_base/secret.key

To export sql file

dump application_icists database
mysqldump -u [user] -p application_icists > filename.sql
mysql -u [user] -p application_icists < filename.sql

To import MySQL sql file

Log in to MySQL and create a database named 'application_icists'

mysql -u [mysql_username] -p application_icists < [imported_sql_file]

To run the program

(env)$ python manage.py runserver 0.0.0.0:[port]

or to run on port 80 as sudo:

(env)$ sudo ../env/bin/python manage.py runserver 0.0.0.0:80

or instead, use the run.sh, script which contains the above command.

How to run with Docker

run Dockerfile

본 어플리케이션은 Docker Configuration을 통해 간단히 Deploy할 수 있다.

docker build -t ams .

docker run -i -v /Users/zoonoo/repo/ams:/ams -t -p 127.0.0.1:80:80 ams \
service mysql start && python ams_base/manage.py runserver 0.0.0.0:80