The official repository for the Help Lesotho forums
This ain't no javascript app though!
Version 6.x
Only the latest and greatest 2.4.1
Recommended: use rbenv to manage ruby installations)
Version 9.5.7
Ensure you have already created a database user with login credentials
sudo -u postgres createuser -s NAMETo set a password for your new user, first enter the postgres console
sudo -u postgres psqlThen, set the password
\password NAMEYou can exit the postgres console via \q
This project uses the dotenv-rails gem to
load environment variables. Copy the included .env.sample file to .env and
fill in the values for each variable
If you haven't already, install bundler (gem install bundler),
then install the dependencies:
bundle installInstall the front-end build dependencies
bin/yarn installrake db:create
rake db:migratechmod -R a+x ./scripts
./scripts/dev.local install-hooksTo run the app, simply call the startup script!
scripts/startupWhat this script does:
It simultaneously starts a rails server rails s and runs bin/webpack-dev-server to compile the frontend assets.
Add unit tests for all backend changes you make. Run
rails testIf a view isn't dynamic, it's rendered server side, otherwise a react component
is used. This project uses the webpacker
gem to build all javascript and CSS. The front end source files are located in
app/frontend.