Sama Intranet is our organization's private network.
It is recommended that you have the following set up on your local environment before getting started
Clone the repository into your local environment
$ git clone git@github.com:technation-sama/intranet.git
Change directory into intranet
$ cd intranet
Run bundle to install all the gems
$ bundle install
create environment_variables.yml
file in the config
folder. (you dont need this file if you are on cloud9)
Add these in the file you just created
development:
GMAIL_USERNAME: yourEmail
GMAIL_PASSWORD: your email password
DATABASE_USER: database user
DATABASE_PASSWORD: password for your database
test:
GMAIL_USERNAME: yourEmail
GMAIL_PASSWORD: your email password
DATABASE_USER: database user
DATABASE_PASSWORD: password for your database
production:
GMAIL_USERNAME: your_email
GMAIL_PASSWORD: your email password
Remember to changer the values of DATABASE_USER
and DATABASE_PASSWORD
based on the Postgres roles you created
Run the migrations
$ rails db:create db:migrate
If you wish to populate your database with Faker gem run this;
$ rake db:populate
Intranet uses mini_magick for image processing.
ImageMagick. Carrierwave can use either RMagick or MiniMagick (default). To change resize option the correct gem must be used (specified in Gemfile) and change included setting for Carrierwave in file_uploader.rb Can be installed from: http://www.imagemagick.org
or run
sudo apt-get update
sudo apt-get install imagemagick
For c9.io users installation process is same although for a few changes. You dont need to create environment_variables.yml
file. Secondly you have to start postgresql service by running the command;
sudo service postgresql start
Finally before running rake db:create db:migrate
goto config/database.yml
and change value of encoding:
to SQL_ASCII
I know right we need to get this done
Contributions are welcome and will be fully credited.
If you discover any security related issues, please create an issue in the repo.
- Eric Mwenda
- Victor Mutai
- Justin Ndwiga
- Eunice Kamar
- Julius tsofa
- Galgallo Wako
- Ben Omondi
- Raycode
- Irene Kamene - documentation and user manual
Copyright (c) 2017 Technation developers
Licensed under the MIT license.