{"id":13434268,"url":"https://github.com/keystonejs/keystone-demo","last_synced_at":"2025-03-17T14:31:05.398Z","repository":{"id":10122137,"uuid":"12191571","full_name":"keystonejs/keystone-demo","owner":"keystonejs","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-14T00:02:18.000Z","size":1957,"stargazers_count":932,"open_issues_count":4,"forks_count":312,"subscribers_count":100,"default_branch":"main","last_synced_at":"2024-10-27T14:44:39.320Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://demo.keystonejs.com","language":"Less","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/keystonejs.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}},"created_at":"2013-08-18T06:54:22.000Z","updated_at":"2024-08-08T13:36:30.000Z","dependencies_parsed_at":"2023-01-11T20:14:06.394Z","dependency_job_id":null,"html_url":"https://github.com/keystonejs/keystone-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keystonejs%2Fkeystone-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keystonejs%2Fkeystone-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keystonejs%2Fkeystone-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keystonejs%2Fkeystone-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keystonejs","download_url":"https://codeload.github.com/keystonejs/keystone-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244050136,"owners_count":20389642,"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-07-31T02:01:51.743Z","updated_at":"2025-03-17T14:31:05.385Z","avatar_url":"https://github.com/keystonejs.png","language":"Less","funding_links":[],"categories":["Less","CSS","others"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e⚠️ Archived\u003c/h1\u003e\n  \u003cp\u003eThis repository is archived and is no longer maintained.\u003c/p\u003e\n  \u003cp\u003eFor the latest Keystone release please visit \u003ca href=\"https://keystonejs.com\"\u003ethe Keystone website.\u003c/a\u003e\u003c/p\u003e\n  \u003chr\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\nKeystone Demo\n=============\n\nThis site is an example of a default [Keystone 4](http://keystonejs.com) application.\n\nTry it out at http://demo.keystonejs.com\n\nPull requests are welcome, and if you'd like to see additional demos just [open a new issue](https://github.com/keystonejs/keystone-demo/issues/new) to let us know.\n\n# TODO\n\n* lock the demo down to vandalism https://github.com/keystonejs/keystone/issues/1126\n\n## Using this as a basis for your own project\n\nWe recommend you use our [Yeoman Generator](https://github.com/JedWatson/generator-keystone) as the basis for new projects, as this demo site contains code specific to running a public demo (like user account protection, etc).\n\nIf you do want to use this as a starting point however, you are welcome to follow the instructions below to begin.\n\n# Manual Install\n\n*Note: We've implemented a new theme for the demo site; to use the (old) basic bootstrap theme, check out the `bootstrap-simple` branch*\n\n    git clone https://github.com/JedWatson/keystone-demo.git\n    cd keystone-demo\n    npm install\n\n### Setting up your accounts and environment\n\nFirst, sign up for free accounts for the following services used by features in the demo site:\n\n*   [Cloudinary](https://cloudinary.com/)\n*   [Mandrill](https://www.mandrill.com/)\n*   [Embed.ly](https://embed.ly/)\n\nThen, create a `.env` file in the project folder (the one with this readme) and fill in the following values:\n\n    CLOUDINARY_URL={your cloudinary url}\n    MANDRILL_APIKEY={your mandrill api key}\n    MANDRILL_USERNAME={your mandrill username}\n    EMBEDLY_APIKEY={your embedly key}\n\n**This file is ignored by the default .gitignore settings. When you put your project into production, replicate the env variables above, and add settings for the following:**\n\n    NODE_ENV=production\n    COOKIE_SECRET={a random string to encrypt cookies}\n    MONGO_URI={your mongo connection uri} // can also be MONGOLAB_URI\n    GA_DOMAIN={your google analytics domain} // optional\n    GA_PROPERTY={your google analytics property} // optional\n    PORT={the port to listen on} // defaults to 3000, automatically set by paas (e.g. heroku)\n\n\n### Installing MongoDB\n\nBy default, KeystoneJS will look for a MongoDB server running on localhost on the default port, and connect to it. If you're getting errors related to the MongoDB connection, make sure your MongoDB server is running.\n\nYou can find more information on how to install MongoDB and other dependencies in the [generator-keystone](https://github.com/keystonejs/generator-keystone) README.\n\n### Configuring the project defaults\n\nOpen **keystone.js** and update the name and brand to your own project.\n\nYou can also change the other settings in this file (locals, nav, etc.) as you develop your project.\n\n\n### Replacing the demo account\n\nOpen **./updates/0.0.1-admins.js** and update the array of initial admin users to your own.\n\nAlso remove the line that says `newAdmin.isProtected = true;` so you can change your password.\n\nWhen you run your app in production, it is strongly recommended you change your password immediately from the default in this file.\n\n### Run it!\n\n`node keystone`\n\nYou should see in your console:\n\n`{your app name} is ready on port 3000`\n\n### Make it your own\n\nNow you can start modifying the demo site and customising it as your own.\n\nSome places to start:\n\n*   `routes/index.js` - this is the file that binds urls to specific view controllers. Files in `./routes/views/*.js` are automatically imported as `routes.views.{script}` ready to be bound.\n*   `./templates` - this is the folder that holds the templates for your views. It would typically match the structure of your `./routes` folder fairly closely.\n*   `./public` - all the files in this folder are served as static assets for your site. Customise and add your own css, client-side javascript, images, etc. here. Any `.less` files will be automatically compiled into `.css` files.\n*   `./models` - these files are included by `./models/index.js` and each one sets up a different database model in your application. If you add more, be sure to add them to the index file!\n\nCheck out the [Keystone 4 documentation](http://v4.keystonejs.com] for more information.\n\n### Ask us questions or tell us what you built\n\nWe love to hear what people are doing with KeystoneJS, and are always happy to help if you get stuck.\n\n * For technical questions, ask on [Stack Overflow](https://stackoverflow.com/tags/keystonejs).\n * For bugs or feature suggestions for Keystone Demo, create a [GitHub issue for `keystone-demo`](https://github.com/keystonejs/keystone-demo/issues).\n * For bugs or feature suggestions for the KeystoneJS Framework, create a [GitHub issue for `keystone-demo`](https://github.com/keystonejs/keystone/issues).\n * For general discussion or feedback, join the [KeystoneJS Slack](http://community.keystonejs.com/).\n * For social media shout out, mention [**@keystonejs**](https://twitter.com/keystonejs) on Twitter.\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2015-2018 Jed Watson\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeystonejs%2Fkeystone-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeystonejs%2Fkeystone-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeystonejs%2Fkeystone-demo/lists"}