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.
-
Clone this repo with Git.
git clone https://github.com/AuburnACM/AUACM.git
-
CD to the folder
/../auacm/setup/
-
Run the script
macos_setup.sh
by 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
-
Clone this repo with Git.
git clone https://github.com/AuburnACM/AUACM.git
-
CD to the folder
/../auacm/setup/
-
Run the script
ubuntu_setup.sh
by 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
- Git
- Node and NPM
- Angular Cli
- Python 2 & 3
- MySQL
- Zip and Unzip
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.
-
Create default MySQL acm user?
- This will create a newacm
user in your MySQL database. If you have ran the script before, or already have theacm
user, then you can sayn
. -
Create empty database?
- If you sayy
to this, it will create a newacm
database with no data in it. If you sayn
, then the data inacm.sql
will 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 calledadmin
with the default passwordpassword
that 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/data
directory, you can reset it with the data inside thedata.zip
file.
-
Reset config file?
- If you already have the/../auacm/auacm/app/config.py
file, 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