mirror of
https://github.com/edcommonwealth/ecp.org.git
synced 2026-03-07 13:38:13 -08:00
No description
| app | ||
| bin | ||
| config | ||
| db | ||
| lib | ||
| log | ||
| public | ||
| spec | ||
| storage | ||
| tmp | ||
| vendor | ||
| .gitattributes | ||
| .gitignore | ||
| .rspec | ||
| .ruby-version | ||
| config.ru | ||
| Gemfile | ||
| Gemfile.lock | ||
| Guardfile | ||
| package.json | ||
| Procfile.dev | ||
| Rakefile | ||
| README.md | ||
| yarn.lock | ||
Starting the Dev Server
The development server can be run by executing the dev file in the bin directory.
bin/dev
When running the development server for the first time, the postgres database will need to be created. You can do this by running rails db:create in the project directory.
Dependencies
Posgres
sudo apt install postgresql-all
Then check if postgres is running with
sudo systemctl status postgresql.service
Note: ensure the user you are running postgres as has necessary permissions. They can be added with:
sudo su - postgres
psql # enter postgres console
ALTER USER my_user WITH Superuser;
Added permissions can be confirmed with \du within the psql console.
JavaScript Dependencies
Install JS dependencies with:
yarn install
Guard
Guard is installed and can be run with bundle exec guard