Code Monkey home page Code Monkey logo

contentful-remix-starter-blog's Introduction

Contentful Remix Starter Blog

Vercel Checkly

Create a Remix blog powered by Contentful. Based on the contentful gatsby starter blog repo.

Screenshot

Getting started

Get the source code and install dependencies

$ git clone [email protected]:marcolink/contentful-remix-starter-blog.git
$ npm install

Or hit the Use this template button on the repo page.

Create contentful space

Create contentful account or use your existing account to create a space. Now create a delivery and management token.

Create environment variables

We now need to set up some env variables:

I personally like to use direnv to manage my env variables. go check it out!

# your space id
export CONTENTFUL_SPACE=<contentful-space-id>

# your content delivery API token 
export CONTENTFUL_CDA_TOKEN=<contentful-delivery-token>

# your content delivery API token 
export CONTENTFUL_CMA_TOKEN=<contentful-management-token>

Import data to your contentful space

$ npm run setup

Development

To run your Remix app locally, make sure your project's local dependencies are installed:

$ npm install

Afterwards, start the Remix development server like so:

$ npm run dev

Update your local typescript definitions for your content types. This step is only needed If you change content types in the associated space.

$ npm run generate

Open up http://localhost:3000 and you should be ready to go!

If you're used to using the vercel dev command provided by Vercel CLI instead, you can also use that, but it's not needed.

Deployment

This project is bootstrapped with npx create-remix@latest and can be deployed to vercel.

contentful-remix-starter-blog's People

Contributors

mirsahib avatar

Watchers

 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.