CfA & DTF Genesis
We aim to provide transparency of construction contracts.
A platform where anyone who wants insights on government projects can subscribe and participate actively and sharing the information collected to preferred social media.
A place for public to be aware and be inspired of the upcoming projects and infrastructure that will be implemented on their areas.
Install PostgreSQL database
- Download postgresql
- Take note of port setting (5432 is default)
- Run postgresql pgAdmin 4 GUI
- "object menu" --> "properties" --> "connection"
- Create a user and take note of the username and password in the postgres database
- In a terminal run
sudo apt-get install postgresql postgresql-server-dev-all sudo su - postgres createdb genesis_development psql
* Then in SQL prompt:
CREATE USER genesis WITH PASSWORD 'q1w2e3r4t5'; ALTER USER genesis CREATEDB;
Create/Locate a suitable local folder like "Sites" for development
Open terminal ("Command Prompt With Ruby On Rails") and execute the following tasks
git clone https://github.com/CodeforAustralia/dtf-genesis.git cd dtf-genesis
Edit database.yml file with appropriate username and password for the development database (Ex. genesis_development) from "config" folder
Then run the commands:
bundle install rails db:create db:migrate rails db:migrate RAILS_ENV=test rails test rails server
Open your browser and you should be able to see your application by entering the url
Create active admin user locally Run this commands at terminal:
rails c # opens up rails console u = User.new u.email = "firstname.lastname@example.org" u.password = "password" u.password_confirmation = "password" u.save