Skip to content

raulg/reactjs-starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependency Status

Prismic React Starter

This project has been created with create-react-app. We added a zest of prismic inside it. It serves as a boilerplate React+Prismic application that will serves as a quick guide to get your own applications off the ground

Quick bootstrap

The fastest way to run get started from scratch is using the Prismic command line tool to install the starter codebase, create a new Prismic repository and setup the Page custom type with only a few commands.

$ npm install -g prismic-cli
$ prismic new

Select a name for your new Prismic repository, the local folder for your project and finally select React to bootstrap the React.js starter project. The dependencies will be installed as well, so once the process is done, just navigate to the folder and run the app with npm start

Follow along with the Help's page instructions. You can safely ignore the instructions in the first two steps regarding creating a new repository and the Page custom type, the Prismic tool has taken care of that for you.

Note: You will still need to setup your repository name in public/index.html

Install dependencies

$ npm install

Runs the app in the development mode

Build and open your browser to http://localhost:3000.

$ npm start

Builds the app for production to the build folder

$ npm run build

Deployment

This project is ready for deployment using Netlify, thanks to the addition of a _redirects file located in the public folder. If you're interested in deploying to other platforms review the suggested solutions.

Get started with Prismic

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

Licence

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.2%
  • HTML 10.4%
  • CSS 8.4%