Git Product home page Git Product logo

ericblog's Introduction

Midtype Starter

Deploy to Netlify

This project is a starter kit for using Midtype with the following libraries:

It was bootstrapped with the default Gatsby Starter, and modified to use Typescript and integrate with Midtype.

Getting Started

  1. In the "Authentication" section of the Midtype UI, add two redirect URLs (note that your production frontend must be hosted on an https domain. If you don't know where you'll host your frontend for the moment, add the second redirect URL when you know.):

    • http://localhost:8000/login
    • https://your-production-frontend-domain.com/login
  2. Set up your local environment variables by creating a file in the root of this project and name it .env.development. Add the following contents to this file:

GATSBY_MIDTYPE_APP_ID=[YOUR MIDTYPE PROJECT ID]
GATSBY_GOOGLE_SIGN_IN=[YOUR `http://localhost:8000/login` GOOGLE SIGN IN LINK]
GATSBY_MIDTYPE_API_URL=https://api.midtype.com
  1. Run yarn locally to install all dependencies. Then run yarn start to run a development version of your site locally. Navigate to http://localhost:8000 to see your site in action.
  2. Log into your site as an admin at /login. In the admin panel, you can create pages, blog posts, or upload photos. This acts as your custom CMS. Note that for any page, whatever you specify for the template field must be a .tsx file in src/templates/. For example, if you specify the template for a given page to be about-page, then ensure that you have a template file at src/templates/about-page.tsx. Learn more about Gatsby templates here.
  3. You can easily deploy this site using Netlify and the included netlify.toml package.

Deploy to Netlify

ericblog's People

Contributors

ericmigi avatar nilkanthjp avatar

Watchers

 avatar  avatar

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.