Open source educational software design, supported by multi-lingual teaching and learning.
Broaden scope of project grasp => Detailed Overview
Skim this before your test-drive => Web App Prototype Feature Requests
In Terminal RUn: sudo apt-add-repository -y ppa:rael-gc/rvm sudo apt-get update sudo apt-get install rvm
RUN: rvm install ruby 2.5.1
gem update --system gem -v
gem install rails -v 6.1.4.1 After the installation is complete, check the rails version.
rails -v
sudo apt install postgresql postgresql-contrib libpq-dev -y After all installation is complete, start the Postgres service and enable it to launch everytime at system boot.
systemctl start postgresql systemctl enable postgresql Next, we will configure a password for the Postgres user, and create a new user for the Rails installation.
Login to the 'postgres' user and run the Postgres shell.
su - postgres psql Change the Postgres password using the query below.
\password postgres Type your password and the password for postgres user has been added.
Now we will create a new role for our rails installation. We will create a new role named 'rails_dev' with the privilege of creating the database and with the password 'aqwe123'.
Run the Postgres query below.
create role rails_dev with createdb login password 'aqwe123';
Got to your project folder in terminal and RUN:
gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
run: bundle install
Run: rake db:setup
to run the project:
Run: rails s
Dev Tools
Dependencies
$ ruby -v
$ rails -v
$ git clone git@github.com:urbanspectra-nyc/unilingo.git ; cd unilingo
$ bundle
$ gem install bundler:2.2.15
$ rails db:create rails db:migrate Rails db:seed
Browse to Local App URL
Repository Tour For Developers
[Test-Driven Feature Development]()
$ heroku -help
$ heroku login
$ heroku create <your app name>
Remote heroku target was added to your project by running: $ git config --list --local | grep heroku
If you see 'fatal: not in a git directory' then you are likely not in the correct directory. Otherwise, you can deploy your code.
Deploy your code to heroku under your own account using: $ git push heroku master
After deploying code, we need to migrate our database, make sure it is properly scaled, and use logs to debug any issues that come up.
To push branch other than master use the following command: $ git push heroku <your-branch-name>:master
Migrate your database
If you are using the database in your application, you need to manually migrate the database by running:
$ heroku run rake db:migrate
Any commands after the heroku run are executed on a Heroku dyno.
You can obtain an interactive shell session by running: $ heroku run bash
We can now visit the app in our browser with command: $ heroku open
Local Setups + Testing
Heroku Setups + Deployments
$ heroku logs -t
$ heroku run rails console
Each of the items above can be represented with 1-2 icons. That lends itself to web diagramming. We use http://diagrams.net for that.
Free course to reference when tawkin 5g to the masses.
Proposed format of tech README.md doc...
Project Title: polylingo
Repository Title: polylingo
Description: multilingual solutions for teaching and learning
Demo URL
Demo Instructions
User Demo Support Requests
User Demo Feature Requests
Audiences
Issue Types
Install Deps For Local App Setup
Clone + Stand Up Local App
Local App Dev Debugging
Local App Dev Prototyping
Deploy To Heroku
Pull Requests
Automate Deployments
Dockerize Dev Env
Automate Dockerization + k8sDeploys
Gitpods For Dev Env
Building Teams
Dev Languages + Frameworks: