{"id":15890306,"url":"https://github.com/hph/lex","last_synced_at":"2025-06-15T09:05:44.651Z","repository":{"id":18808298,"uuid":"22022719","full_name":"hph/Lex","owner":"hph","description":"Legal Software for Great Justice","archived":false,"fork":false,"pushed_at":"2014-08-14T23:18:32.000Z","size":344,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T17:15:34.746Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-20T00:33:28.000Z","updated_at":"2015-06-02T02:10:14.000Z","dependencies_parsed_at":"2022-09-24T16:15:16.134Z","dependency_job_id":null,"html_url":"https://github.com/hph/Lex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hph/Lex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hph%2FLex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hph%2FLex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hph%2FLex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hph%2FLex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hph","download_url":"https://codeload.github.com/hph/Lex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hph%2FLex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259949660,"owners_count":22936407,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-06T07:05:07.984Z","updated_at":"2025-06-15T09:05:44.611Z","avatar_url":"https://github.com/hph.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Lex\n===\n\n### Tech Stack\n#### Front end\n  - [CoffeeScript](http://coffeescript.org/)\n  - [Haml](http://haml.info/)\n  - [SASS](http://sass-lang.com/)\n  - [Bootstrap](http://getbootstrap.com/)\n  - [jQuery](http://jquery.com/)\n  - [Backbone.js](http://backbonejs.org/)\n  - [Underscore.js](http://underscorejs.org/)\n\n#### Back end\n  - [Ruby](http://www.ruby-lang.org/)\n  - [Ruby on Rails](http://rubyonrails.org/)\n  - [PostgreSQL](http://www.postgresql.org/)\n\n### Setup\nFirst you must install all the dependencies listed below:\n\n  - [Git](http://git-scm.com/downloads)\n  - [PostgreSQL (native client)](http://www.postgresql.org/download/) or \n  [Postgres.app (only for Mac OS)](http://postgresapp.com/)\n  - [RVM](http://rvm.io/)\n\nWhen all the dependencies have been installed, open a terminal and get the\ncode:\n\n    git clone https://github.com/hph/Lex.git \u0026\u0026 cd Lex\n\nInstall Ruby 2.1.2 with RVM:\n\n    rvm install ruby-2.1.2 \u0026\u0026 rvm use ruby-2.1.2\n\nSet Ruby 2.1.2 as the default Ruby for this application:\n\n    echo \"rvm use 2.1.2\" \u003e .rvmrc\n\nInstall Ruby gems (libraries):\n\n    bin/bundle\n\nSetup your PostgreSQL user:\n\n    sudo -u postgres createuser -s `whoami`\n    psql postgres -tAc \"ALTER USER `whoami` WITH PASSWORD '`whoami`'\"\n\nAdd database configuration for the development environment:\n\n    echo \"development:\n      adapter: postgresql\n      database: lex\n      username: `whoami`\n      password: `whoami`\n      host: localhost\" \u003e config/database.yml\n\nNow create the database with the application schema and seed it:\n\n    bin/rake db:create db:schema:load db:seed\n\nYou're done! See [Usage](https://github.com/hph/Lex#usage) for instructions on\nhow to run the application server and more.\n\n### Usage\n#### Application server\nTo run the application server, run the following command:\n\n    bin/rails s\n\nThe application will be available at [localhost:3000](http://localhost:3000).\n\n#### Rails console\nThe Rails console allows you to run commands through Pry with the Rails\nenvironment:\n\n    bin/rails c\n\nYou can also run the console in sandbox mode to rollback any database changes\nautomatically on exit:\n\n    bin/rails c -s\n\n### Maintenance\n#### Updating dependencies\nYou should run Bundler every time you see that *Gemfile.lock* has been modified\nafter pulling the latest commits:\n\n    bin/bundle\n\n#### Migrations\nYou should also run database migrations after pulling the latest commits if\nthere are new migrations in *db/migrate* or *db/schema.rb* is updated when you\npull:\n\n    bin/rake db:migrate\n\nOtherwise you may just load the database schema directly:\n\n    bin/rake db:schema:load\n\n#### Seeding\nIf the database is in a pristine condition and you need test data, you can seed\nthe database:\n\n    bin/rake db:seed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhph%2Flex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhph%2Flex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhph%2Flex/lists"}