GithubHelp home page GithubHelp logo

keystone-jamstack-plus's Introduction

⚠️ Archived

This repository is archived and is no longer maintained.

For the latest Keystone release please visit the Keystone website.



Keystone JAMstack Plus starter-kit

Getting started

This is a KeystoneJS starter-kit that provides an API for a static blog or website.

It's best paired with Supermaya, a super fast Eleventy template that will add features such as comments, claps, reading lists and login when the back-end it configured.

The idea is: rather than adding a bunch of third-party services to a static site's build process, why not own the data, get rid of the build processes, unify all of your API and build simple custom services?

If you're interested in giving this a try, you can deploy all of the services in a few simple steps.

First, click on the Deploy button below to deploy the backend to Heroku. Don't forget to set the initial admin password during the install.

Deploy

Once it's deployed, click on the 'View App' button to launch the welcome page. It has instructions on how to set-up the accompanying front-end with a similar one click button!

Note: This will deploy a free instance on Heroku which will sleep periodically if not used and can result in a slow API response time after periods of inactivity. You can upgrade to a hobby instance to avoid this.

Running locally?

Read the Getting started guide for KeystoneJS.

yarn run dev

Then visit:

keystone-jamstack-plus's People

Contributors

bladey avatar madebymike avatar simonswiss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

keystone-jamstack-plus's Issues

Finish claps

Question: If users don't need to be logged in for this... it's really hard!

Add instructions to readme

This will also form the basis of the article part.

  1. Document steps to deploy
  2. Design button
  3. Next steps to connect

keystone not working after heroku deployment

2021-04-03T20:31:24.982547+00:00 app[web.1]: 
2021-04-03T20:31:24.982565+00:00 app[web.1]: > [email protected] prestart /app
2021-04-03T20:31:24.982565+00:00 app[web.1]: > npm run initialise_db
2021-04-03T20:31:24.982566+00:00 app[web.1]: 
2021-04-03T20:31:25.343799+00:00 app[web.1]: 
2021-04-03T20:31:25.343849+00:00 app[web.1]: > [email protected] initialise_db /app
2021-04-03T20:31:25.343850+00:00 app[web.1]: > knex seed:run && knex migrate:up
2021-04-03T20:31:25.343851+00:00 app[web.1]: 
2021-04-03T20:31:57.570539+00:00 app[web.1]: Could not connect to database: 'xxx'
2021-04-03T20:31:57.571038+00:00 app[web.1]: If this is the first time you've run Keystone, you can create your database with the following command:
2021-04-03T20:31:57.571134+00:00 app[web.1]: createdb xxx
2021-04-03T20:31:57.571668+00:00 app[web.1]: Error: Error while executing "/app/data/seeds/initial_data.js" seed: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
2021-04-03T20:31:57.571669+00:00 app[web.1]:     at Seeder._waterfallBatch (/app/node_modules/knex/lib/seed/Seeder.js:118:23)
2021-04-03T20:31:57.571670+00:00 app[web.1]: Error: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
2021-04-03T20:31:57.571671+00:00 app[web.1]:     at /app/node_modules/@keystonejs/utils/dist/utils.cjs.prod.js:45:97
2021-04-03T20:31:57.571671+00:00 app[web.1]:     at async Object.exports.seed (/app/data/seeds/initial_data.js:10:3)
2021-04-03T20:31:57.571672+00:00 app[web.1]:     at async Seeder._waterfallBatch (/app/node_modules/knex/lib/seed/Seeder.js:115:9)
2021-04-03T20:31:57.589002+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-04-03T20:31:57.589342+00:00 app[web.1]: npm ERR! errno 1
2021-04-03T20:31:57.595322+00:00 app[web.1]: npm ERR! [email protected] initialise_db: `knex seed:run && knex migrate:up`
2021-04-03T20:31:57.595402+00:00 app[web.1]: npm ERR! Exit status 1
2021-04-03T20:31:57.595518+00:00 app[web.1]: npm ERR! 
2021-04-03T20:31:57.595595+00:00 app[web.1]: npm ERR! Failed at the [email protected] initialise_db script.
2021-04-03T20:31:57.595686+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-04-03T20:31:57.603710+00:00 app[web.1]: 
2021-04-03T20:31:57.604015+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-04-03T20:31:57.604159+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2021-04-03T20_31_57_596Z-debug.log
2021-04-03T20:31:57.617713+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-04-03T20:31:57.617990+00:00 app[web.1]: npm ERR! errno 1
2021-04-03T20:31:57.623283+00:00 app[web.1]: npm ERR! [email protected] prestart: `npm run initialise_db`
2021-04-03T20:31:57.623364+00:00 app[web.1]: npm ERR! Exit status 1
2021-04-03T20:31:57.623466+00:00 app[web.1]: npm ERR! 
2021-04-03T20:31:57.623549+00:00 app[web.1]: npm ERR! Failed at the [email protected] prestart script.
2021-04-03T20:31:57.623616+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-04-03T20:31:57.629937+00:00 app[web.1]: 
2021-04-03T20:31:57.630158+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-04-03T20:31:57.630247+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2021-04-03T20_31_57_624Z-debug.log
2021-04-03T20:31:57.710482+00:00 heroku[web.1]: Process exited with status 1
2021-04-03T20:31:57.765381+00:00 heroku[web.1]: State changed from starting to crashed

Build front-end

This should tell users they have successfully deployed to Heroku etc.... and be generally helpful... and look good.

Great issue Mike!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.