Code Monkey home page Code Monkey logo

website-example-with-prismic's Introduction

Sample Website with prismic.io Headless CMS

This is a sample website project using NodeJS with content managed with prismic.io Headless CMS.

Setting up the project

This project uses NodeJS, so you will need to make sure you have NodeJS installed on your local machine.

Install the project with the prismic.io CLI

The quickest and easiest way to get this project up and running is to use the prismic.io command line interface. To install it, Simply run the following command:

npm install -g prismic-cli

Once installed, you can use the CLI to launch this project. From the directory where you want to install the project files, run the following command:

prismic theme https://github.com/levimykel/website-example-with-prismic

This will not only install the project files, but will also set up a new repository on prismic.io and create all the custom types needed for this example website.

Create some content

Go to your newly created prismic.io content repository and create some content.

Start by creating a homepage. Go to Content, click on "New", and select the Homepage custom type. Fill it in with text and images, then save and publish.

Next create a few pages. Again don't forget to save and publish.

Finally create a navigation.

Once you have your content created, you'll be ready to launch the website.

Launch the project

Launching the project is easy! From your project folder, run the following commands:

npm install -g nodemon
nodemon

This will launch the project on your local machine. Point your browser to the local server and you should see your website running. The project retrieves the content from your prismic.io repository and displays it in your browser.

Learn more about prismic.io

You can find out more about prismic.io and how to get started using the prismic.io quickstart project or by exploring the documentation.

website-example-with-prismic's People

Contributors

levimykel avatar

Watchers

James Cloos 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.