GithubHelp home page GithubHelp logo

uerkw / cf-remix-cms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rozenmd/d1-drizzle-remix-example

0.0 0.0 0.0 620 KB

An example of using Remix with Cloudflare D1 and Drizzle ORM, hosted on Cloudflare Pages

Home Page: https://d1-drizzle-remix-example.pages.dev/

License: MIT License

JavaScript 7.48% TypeScript 92.52%

cf-remix-cms's Introduction

Cloudflare D1, Remix, and Drizzle

This repo is an example for using Cloudflare D1, Remix, and Drizzle together. You can see a live demo here.

Development

You will be utilizing Wrangler for local development to emulate the Cloudflare runtime. This is already wired up in your package.json as the dev script:

# start the remix dev server and wrangler
npm run dev

Open up http://127.0.0.1:8788 and you should be ready to go!

Deployment

Cloudflare Pages are currently only deployable through their Git provider integrations.

If you don't already have an account, then create a Cloudflare account here and after verifying your email address with Cloudflare, go to your dashboard and follow the Cloudflare Pages deployment guide.

Configure the "Build command" should be set to npm run build, and the "Build output directory" should be set to public.

Initialization

  1. npm install
  2. npm run d1:new
  3. Add the newly created D1 database UUID to wrangler.toml
  4. npm run d1:init

With the D1 database initialised on Cloudflare, and configured in your wrangler.toml, you can also develop on a local d1 database (after running the above steps):

  1. npm run local:d1:init
  2. npm run dev

Deploy to Cloudflare Workers

cf-remix-cms's People

Contributors

kishanhitk avatar rozenmd 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.