Installation - AuburnACM/auacm GitHub Wiki
The website currently supports Ubuntu 16.04 and Centos 7 for production use. You may use MacOS or Ubuntu for development purposes, but Windows is not supported at all at this time.
Table of Contents
MacOS Development Installation
MacOS Install Steps
-
Clone this repo with Git.
git clone https://github.com/AuburnACM/AUACM.git -
CD to the folder
/../auacm/setup/ -
Run the script
macos_setup.shby executing the command./macos_setup.sh. This script will walk you through setting up your development environment. It will ask you a few questions about setting up a config and the database. To see what the questions are asking specifically, see below
MacOS Packages Installed
Ubuntu Development Installation
Ubuntu Install Steps
-
Clone this repo with Git.
git clone https://github.com/AuburnACM/AUACM.git -
CD to the folder
/../auacm/setup/ -
Run the script
ubuntu_setup.shby executing the command./ubuntu_setup.sh. This script will walk you through setting up your development environment. It will ask you a few questions about setting up a config and the database. To see what the questions are asking specifically, see below
Ubuntu Packages Installed
- Git
- Node and NPM
- Angular Cli
- Python 2 & 3
- MySQL
- Zip and Unzip
Config File
Since we don't want to share config files (that's bad), you should create your
own config.py file if you haven't already. If you run one of the setup scripts, the config file
will be generated for you. There are a few things you should drop in there. A good config file looks like this:
# This file holds constants for configuration.
# DO NOT EXPOSE THIS TO GITHUB.
DEBUG = True
SECRET_KEY = 'developement key'
DATA_FOLDER = '/Path/to/your/clone/auacm/auacm/app/data'
TEMP_DIRECTORY = '/Path/to/your/clone/auacm/auacm/temp'
TEST_USERNAME = 'will'
TEST_PASSWORD = 'password'
Your config.py file belongs in the auacm/auacm/app directory.
Setup Script Questions
Database Questions
-
Create default MySQL acm user?- This will create a newacmuser in your MySQL database. If you have ran the script before, or already have theacmuser, then you can sayn. -
Create empty database?- If you sayyto this, it will create a newacmdatabase with no data in it. If you sayn, then the data inacm.sqlwill be loaded into the database. -
Create new AUACM admin?- This asks if you want to create a new admin user for the website. There is already a default admin account calledadminwith the default passwordpasswordthat you may use instead of creating your own. -
Create test database?- This asks if you want to create a separate acm test database. It will backup the main database and load it into a new database calledacm_test. -
Do you want to reset the data directory?- If you already have the/../auacm/auacm/app/datadirectory, you can reset it with the data inside thedata.zipfile.
Config Questions
-
Reset config file?- If you already have the/../auacm/auacm/app/config.pyfile, this will reset it. -
Enter a secret key:- the key used for encrypting cookies. -
Enter a test username:- the username used for testing the problem data -
Enter a test password:- the password for the test user