{"id":19709930,"url":"https://github.com/engagementlab/el-bootstrapper","last_synced_at":"2026-05-15T09:10:20.654Z","repository":{"id":34242151,"uuid":"159533008","full_name":"engagementlab/el-bootstrapper","owner":"engagementlab","description":"Module for website bootstap/initialization.","archived":false,"fork":false,"pushed_at":"2023-01-23T21:58:49.000Z","size":2451,"stargazers_count":0,"open_issues_count":21,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-10T13:53:07.836Z","etag":null,"topics":["cms","el-bootstrapper","keystonejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/engagementlab.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":"2018-11-28T16:36:53.000Z","updated_at":"2020-07-02T15:36:27.000Z","dependencies_parsed_at":"2023-02-13T03:45:34.490Z","dependency_job_id":null,"html_url":"https://github.com/engagementlab/el-bootstrapper","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engagementlab%2Fel-bootstrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engagementlab%2Fel-bootstrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engagementlab%2Fel-bootstrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engagementlab%2Fel-bootstrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/engagementlab","download_url":"https://codeload.github.com/engagementlab/el-bootstrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241026881,"owners_count":19896716,"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":["cms","el-bootstrapper","keystonejs"],"created_at":"2024-11-11T22:05:18.479Z","updated_at":"2026-05-15T09:10:20.576Z","avatar_url":"https://github.com/engagementlab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# EL-Bootstrapper\n## The [Engagement Lab](https://elab.emerson.edu)'s library for web server API/[KeystoneJS](https://keystonejs.com/) CMS instance initialization.\n![EL-Bootstrapper logo](https://res.cloudinary.com/engagement-lab-home/image/upload/c_scale,f_auto,w_150/v1551303051/logos/logo-bootstrapper.png \"EL-Bootstrapper logo\")\n\n* BYO [expressjs](https://expressjs.com/) instance!\n* Uses Auth0 for login to KeystoneJS via [Google connection](https://auth0.com/docs/connections/social/google). You will need to [create an Auth0 app](https://auth0.com/docs/flows/guides/regular-web-app-login-flow/add-login-using-regular-web-app-login-flow).\n* Unlike the default KeystoneJS 'User' model, ours has no password field. Just add users' gmail address, and they can login via Auth0.\n* Keystone admin panel is still entered via /keystone, but you're directed to /cms by default after login.\n* Replaces our deprecated [el-web-sdk](https://github.com/engagementlab/el-web-sdk).\n\n### Install\n```npm i --save @engagement-lab/el-bootstrapper```\n\n### Environment\nNode 10.14.0+ supported. Should work as low as 8.11.4.\n\nYou must specify the following in your _.env_ (reminder to never commit this):\n```\nDEV_EMAIL=[email to use for automatic keystone login on NODE_ENV=development]\nCOOKIE_SECRET=[random hash for keystone cookie]\n\n(obtain following at https://manage.auth0.com/)\nAUTH0_CLIENT_ID=[your id]\nAUTH0_DOMAIN=[your domain].auth0.com\nAUTH0_CLIENT_SECRET=[your secret]\nAUTH0_CALLBACK_URL=[usually http://localhost:3000/callback]\n```\n\nAnd optionally:\n```\nPORT=[a port to run on, defaults to 3000]\n```\n\nYou will also need a *config.json* in your app root dir:\n```json\n{\n\t\"name\": \"Name of website\",\n\t\"database\": \"mongo-database-name\",\n\t\"adminPath\": \"cms\"\n}\n```\n\n### Usage\nIn your Node app main file (e.g. _app.js_, using [dotenv](https://www.npmjs.com/package/dotenv) in this example):\n```javascript\n// Load .env vars\nif(process.env.NODE_ENV !== 'test')\n\trequire('dotenv').load();\n\nconst bootstrap = require('@engagementlab/el-bootstrapper'), \n      express = require('express');\n\nlet app = express();\nbootstrap.start(\n    // Path to config\n    './config.json', \n    // Express\n    app,\n    // The root of this app on disk, needed for keystonejs\n    __dirname + '/', \n    // Any additional config vars you want for keystonejs instance\n    // See: https://keystonejs.com/documentation/configuration/\n\t{\n\t\t'name': 'Name of website CMS'\n\t},\n\t() =\u003e {\n        // any logic to run after app is mounted\n        // you need at least:\n\t\tapp.listen(process.env.PORT);\n\t}\n);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengagementlab%2Fel-bootstrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fengagementlab%2Fel-bootstrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengagementlab%2Fel-bootstrapper/lists"}