GithubHelp home page GithubHelp logo

nextjs-website's Introduction

Dependency Status

nextjs-website

This project is an implementation of the Prismic multi-page website demo using Next.js. Built up from the starter project, it's meant to provide you with an idea of how to build your own sites using the Prismic features. Read our user guide if you need guidance on how to use this repository. This project is serverless and ready for deployment in Now v2.

Getting started quickly with Prismic Themes

You can use our Prismic-CLI tool to quickly install this project in your machine, as well as setting up a Prismic repository with the required Custom Types. Just follow the instructions in your terminal to get started!

npm install -g prismic-cli
prismic theme --theme-url https://github.com/prismicio/nextjs-website/

Install dependencies

npm install

Installing Now globally

The official recommendation is to install Now Desktop and check the Canary Releases option. This is will automatically update your now-cli package so it's always up to date. You can also install the package using NPM if you're not concerned about updates.

npm install -g now

Run serverless mode locally

As of version 15.0.0 of now you can use the now dev command to run the project in your local machine in serverless mode. You can use this to set up and test your routing in now.json without having to deploy to Now for every small change. This is great for testing routing before a deployment. Development server will be running in http://localhost:3000/

now dev

or

npm run dev

Deploy to Now 2.0 serverless mode

Signup for Now for deploying your site using serverless features. The required routing and setup files are already included in the project. Just run the now command in your project folder if you have installed it, or try the included package.

now

or

npm run deploy

Get started with Prismic

You can find out how to get started with Prismic from our React documentation.

License

This software is licensed under the Apache 2 license, quoted below.

Copyright 2019 Prismic (https://prismic.io).

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

nextjs-website's People

Contributors

levimykel avatar pauprismic avatar pvpg avatar raulg 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.