The recommended software versions are
- rails
>=5.1
- ruby
>=2.3
- node
>=7
You should have the following packages installed (see Dockerfile)
build-essential
nodejs
npm
libpq-dev
wget
git
cron
You should provide a redis instance and an SMTP server.
We strongly recommend using the Docker--approach:
- Install all needed packages (see above)
1a. Update node to version 8:
sudo npm install -g n && sudo n 8
1b. Install ember:sudo npm install -g ember bower
- Clone this repository
- set the needed environment variables(use
source development.sh
for a quickstart) - Create the needed database:
rake db:create db:migrate
- Precompile the assets:
rake assets:precompile
- Start the engines:
rails s
- Have an running instance of postgresql
- Edit the
development.env
accordingly - Build the docker-image
docker build .
- Create the docker container:
docker create --env-file=development.env --name Moozean -p 3008:3000 <hash of the image>
- Start the container
docker start Moozean
- Create the database, if needed,
docker exec Moozean bundle exec rake db:create
- Migrate the database, if needed,
docker exec Moozean bundle exec rake db:migrate qc:update
- Done! Visit
localhost:3008