Empirical Core is the Learning Management System that powers Quill.org, a free writing tool.
Front End | Back End | Travis CI |
---|---|---|
Fork and Clone this repository to submit a Pull Request.
Getting Started: Visit our Community Page. The Mailing List, Chat, Issues, and Docs can all be accessed from the community page.
CLA: Please register an account & sign our CLA.
Here is a guide to Empirical Core that makes installation and setup easy.
If you want a simple guide to install Empirical Core, then you've come to the right place! Here's the step-by-step process to get Empirical Core running on your system:
-
Download and install rbenv (or another Ruby version manager of your choice). You need to have Ruby version 2.3.1 installed in order to use Empirical Core. The best way to make sure you have version 2.3.1 is to follow the README and wiki of the Ruby version manager that you download.
If you decide to use rbenv, then homebrew has a really great and easy-to-use setup and install process:
brew update
brew install rbenv ruby-build
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
- Close and reopen your terminal.
-
Download and install postgres, the database engine Empirical Core uses. The easiest way to get started with this is to download postgres.app.
If you're more comfortable with installing custom software, you can use homebrew to download and install postgres instead using the following commands:
brew update
brew install postgres
- Follow the instructions on the resulting info screen.
-
Navigate to the directory where you'd like Empirical Core to live, then run the following command to clone the Empirical Core project repository:
git clone https://github.com/empirical-org/Empirical-Core.git
-
Use
cd Empirical-Core
to change directory into the Empirical Core repository. -
Install Redis. You can download it directly.
Alternatively, you can use homebrew to install it by running the following commands:
brew update
brew install redis
-
To run
js: true
/:js
-taggedfeature
specs, install PhantomJS. -
Install bundler with
gem install bundler
. -
Install the bundle with
bundle install
. -
In the config folder, delete the ".example" extension from database.yml.example so that the filename reads "database.yml" by running
mv database.yml.example database.yml
. -
Set up your database by running
rake empirical:setup
. -
Run Redis with the command
redis-server
-
Run a second Redis instance (for caching) with the command
redis-server --port 7654
. -
Run a third Redis instance (for testing) with the command
redis-server --port 6378
. -
Install npm by running
brew install npm
. -
Run npm installer with the command
npm install && cd ./client && npm install
. -
Make sure to navigate back out of the "client" folder by running
cd ..
-
Run the server locally.
- Run the server using the command
foreman start -f Procfile.static
. - Navigate your browser to localhost:3000 and you should see Empirical-Core pull up properly!
- When you're done with the server, use Ctrl-C to break it and return to your commandline.
- Run the server using the command
-
Run the command
bin/guard
so that Guard run specs when you save files.
We use GitBook for documentation. To get it set up, run gitbook init
and then either gitbook serve
(to run the book on a server) or gitbook build
(to build a static version of the book). To add docs, create markdown files in the /docs folder and then add a relative link to the file in docs/SUMMARY.md.
The installation comes with four users, though you can create as many more as you like. The pre-installed users are:
- A teacher, username
teacher
and passwordteacher
. - A student, username
student
and passwordstudent
. - An admin, username
admin
and passwordadmin
. - An admin, username
staff
and passwordstaff
.