Coder Social home page Coder Social logo

gon10 / proto01 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from headcodecms/proto01

0.0 0.0 0.0 13.94 MB

This repository bundles Headcode CMS with a built-in website for demo purposes.

Home Page: https://www.headcodecms.com

JavaScript 0.29% TypeScript 99.63% CSS 0.08%

proto01's Introduction

Headcode CMS

Headcode CMS is a 100% open-source headless CMS. It does not require a separate CMS server or cloud service. Simply embed it into your Next.js 13 project - configure Supabase for database, storage, and Auth - and you are DONE! Future versions will support additional front-end frameworks and cloud services.

More information:

Setup and Installation

To run the prototype locally you need to perform the following steps:

  1. Clone or download the repository from GitHub
  2. Run "npm install --legacy-peer-deps" to install the dependencies
  3. Copy .env.local.example to .env.local
  4. Create a new Supabase project
  5. Add Supabase connection strings to .env.local
  6. Run "npm run dev" to start the server
  7. Open http://localhost:3000
  8. Click "Register" to register and account and setup the database tables and storage.

Upload Demo Data

Headcode CMS works without data as well, but if you'd like to import the demo data for the database and storage, just import them in Supabase Studio after you finished the setup. You find the demo data in the _demo_data folder.

Import demo data to v01_sections table

Import the file supabase-sections.csv from the folder _demo_data in your Supabase Tables Dashboard.

Import Demo Data

Import demo images to Supabase storage

Unzip the file supabase-storage.zip from the folder _demo_data and upload the files to the public folder of the headcode bucket.

Upload Demo Images

Upload Demo Images

Environment Variables

The prototype requires Supabase to work correctly. Therefore configure the following environment variables (e.g.: .env.local):

NEXT_PUBLIC_SUPABASE_URL=https://<PROJECT_ID>.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=xxx
SUPABASE_CONNECTION_STRING=postgresql://postgres:xxx

PLEASE NOTE

In this demo I bundled an early version of Headcode CMS with a basic theme. It is not intended to be used in production, and I don't give support for this repository.

I'm currently working on the npm packages which includes documention, full TypeScript support, and testing.

You may not redistribute copies of this demo under a different name.

For feedback you can reach me at X (Twitter) via (@markustripp)[https://twitter.com/markustripp] or via email: [email protected]

proto01's People

Contributors

markustripp 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.