IDEALS uses Rails + Docker for fast development. Make a change in your file and instantaneously see your updates!
Open your favourite Terminal and run these commands.
git clone https://github.com/Proj-IDEALS/ideals.git
cd ideals
docker-compose -f docker-compose.dev.yml up --build
Make sure you have installed all of the following prerequisites on your development machine:
- Git - Download & Install Git
- Ruby - Download & Install Ruby
- Rails - Download & Install Rails
- npm - Download & Install npm
- yarn - Install yarn
git clone https://github.com/Proj-IDEALS/ideals.git
cd ideals/app
bundle install
yarn install
bundle exec rails server -b 0.0.0.0
If you encounter issues related to webpack compilation when working with nodejs, it could be due to using an outdated version of nodejs. Specifically, you may get an error related to a missing 'manifest.json' file or a similar issue. This error is caused by webpack silently failing with code: 'ERR_OSSL_EVP_UNSUPPORTED'. To fix this issue, you should make sure to use the latest LTS version of nodejs. You can check the current LTS version on the official nodejs website. If you are using an older version, update it to the latest LTS version. Additionally, you may need to set the following command in your terminal:
export NODE_OPTIONS=--openssl-legacy-provider
Note: If image loading is not working, install libvps library in your system
In order to conduct automated feature testing within the developed system, a Selenium WebDriver has been employed in conjunction with the Cucumber testing framework. The Selenium WebDriver utilizes Google Chrome as the browser for executing test cases. Consequently, it is imperative that users ensure the presence of Google Chrome on their systems prior to initiating the test suite.
cd ideals/app
bundle install
yarn install
rake
git clone https://github.com/Proj-IDEALS/ideals.git
cd ideals
docker-compose -f docker-compose.local.yml up --build
docker-compose -f docker-compose.local.yml exec db psql -U postgres -c "CREATE DATABASE ideals;"
docker-compose -f docker-compose.prod.yml exec db psql -U postgres -d ideals -f backups/dump_19-04-2023_06_36_25.sql
To see all the docker container
docker ps -all
To remove one docker container (It is useful when you having issues to start the server, try to remove the old containers and run start server command again)
docker rm ideals_app_1
docker-compose -f docker-compose.prod.yml exec db pg_dump -U postgres -d ideals > backups/backup.sql