{"id":16410250,"url":"https://github.com/danasilver/middleendian-workshop-demo","last_synced_at":"2026-06-13T06:31:37.314Z","repository":{"id":152244016,"uuid":"58822702","full_name":"danasilver/middleendian-workshop-demo","owner":"danasilver","description":"Middle Endian Web Workshop","archived":false,"fork":false,"pushed_at":"2016-05-15T01:47:15.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T02:30:02.162Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danasilver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-14T18:07:25.000Z","updated_at":"2016-05-14T19:42:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"b88499c8-6b91-403c-847c-cdb88ffaba78","html_url":"https://github.com/danasilver/middleendian-workshop-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danasilver/middleendian-workshop-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danasilver%2Fmiddleendian-workshop-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danasilver%2Fmiddleendian-workshop-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danasilver%2Fmiddleendian-workshop-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danasilver%2Fmiddleendian-workshop-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danasilver","download_url":"https://codeload.github.com/danasilver/middleendian-workshop-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danasilver%2Fmiddleendian-workshop-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34275065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11T06:23:37.535Z","updated_at":"2026-06-13T06:31:37.277Z","avatar_url":"https://github.com/danasilver.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Middle Endian Web Demo\n\nCode from the workshop on May 11, 2016.\n\n### Installation\n\n#### Install Node.js\n\nInstall from the [Node.js](https://nodejs.org/) website.\n\nIf you're on OS X, I recommend installing with\n[n](https://github.com/tj/n) or [nvm](https://github.com/creationix/nvm).\n\nIf you use [Homebrew](http://brew.sh), you can\n\n```sh\n$ brew install n\n$ n 4\n```\n\nto install [n](https://github.com/tj/n) and Node.js version 4.\n\n#### Install PostgreSQL\n\n* [Windows](http://www.postgresql.org/download/windows/)\n* [OS X](http://postgresapp.com/)\n\n#### Install the project requirements\n\n```sh\n$ npm install\n```\n\nIf you're starting the project from scratch (i.e. you don't have a **package.json**), run\n\n```sh\n$ npm init\n```\n\nand answer the interactive questions.\n\nYou can install the\n[dependencies](https://github.com/danasilver/middleendian-workshop-demo/blob/dfc856c2b6a32134bd280482525be9306c1622eb/package.json#L14-L20)\none at a time as you need them, or all at once with\n\n```sh\n$ npm install --save express body-parser knex pg pug\n```\n\n### Setup the Local Development Database\n\nMake sure your Postgres installation is running.\nOn OS X you'll see the elephant logo in the toolbar.\nOpen the app (or click the elephant logo) and open `psql`.\n\nFrom the `psql` console, run:\n\n```\nusername# create database middleendian;\n```\n\nto create the database. The name of the database (`middleendian`)\ncan be whatever you like, but it'll need to match the database\nin the development settings of your\n[knexfile.js](https://github.com/danasilver/middleendian-workshop-demo/blob/cc3d996324643c5b8342715b87b09b78ab85c021/knexfile.js#L5).\n\nUse the [Knex CLI](http://knexjs.org/#Migrations-CLI) to run the migrations:\n\n```sh\n$ npm install -g knex\n$ knex migrate:latest\n```\n\nIf you get an error (`EACCES`) when you try to install knex with the `-g` flag,\ncheck out the\n[fixing npm permissions](https://docs.npmjs.com/getting-started/fixing-npm-permissions) guide.\n\n### Develop\n\nStart the server:\n\n```sh\n$ node .\n```\n\nThis is equivalent to `node index.js`.\n\nVisit **localhost:3000** in your web browser to see the running site.\n\nTo stop the server (and get back to your terminal), use \u003ckbd\u003eCtrl + c\u003c/kbd\u003e.\n\n### Deploy to Heroku\n\n#### Get setup with Heroku\n\n* Create a [Heroku account](https://signup.heroku.com/).\n* Download and install the [Heroku Toolbelt](https://toolbelt.heroku.com/).\n* [Check for an existing SSH key](https://help.github.com/articles/checking-for-existing-ssh-keys/).\n* If you don't have one, [generate an SSH key](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/).\n* [Add your SSH key to Heroku](https://devcenter.heroku.com/articles/keys).\n* If you don't have Git installed, follow [the installation guide](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).\n\n#### Push your code to Heroku\n\n##### Commit your changes with Git\n\nWe use Git to deploy code to Heroku.\n\nIf you haven't already initialized a Git repository, initialize one with\n\n```sh\n$ git init\n```\n\nYou can run `git status` to check if you already initialized one.\nIf you didn't, you'll get\n\n```\n$ git status\nfatal: Not a git repository (or any of the parent directories): .git\n```\n\nCommit the latest changes:\n\n```sh\n$ git add .\n$ git commit -m \"Commit message.\"\n```\n\n##### Create an app on Heroku\n\n```sh\n$ heroku create\n```\n\nYou can run this command with a custom name if you want:\n\n```sh\n$ heroku create custom-name\n```\n\nThe `heroku create` command will add a Git remote named `heroku` to your Git config.\n\n##### Create the [database](https://elements.heroku.com/addons/heroku-postgresql) on Heroku:\n\n```sh\n$ heroku addons:create heroku-postgresql:hobby-dev\n```\n\n##### Push to Heroku\n\n```sh\n$ git push heroku master\n```\n\n##### Migrate the database on Heroku\n\nThis runs the `migrate:latest` script we added to the\n[package.json](https://github.com/danasilver/middleendian-workshop-demo/blob/a0d253d1ba152549df01cbe3c4e0a92079e58e06/package.json#L8).\n\n```sh\n$ heroku run npm run migrate:latest\n```\n\n##### Open the live app\n\n```sh\n$ heroku open\n```\n\nThe website will be **your-app-name.herokuapp.com**.\n\n### Questions\n\nIf you have any questions or comments,\n[open an issue](https://github.com/danasilver/middleendian-workshop-demo/issues/new) on this repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanasilver%2Fmiddleendian-workshop-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanasilver%2Fmiddleendian-workshop-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanasilver%2Fmiddleendian-workshop-demo/lists"}