ClydeDz / cloudflare-pages-demo

GitHub repository for a Medium article on Cloudflare Pages. Read the article using the link below.

Home Page:http://bit.ly/cdz264

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloudflare Pages demo app

This project was bootstrapped with Create React App.

Setting up locally

  1. Create a .env file in the project's root directory. Add this line of code REACT_APP_CUSTOM_MESSAGE="Local environment" into the file.
  2. In the project directory, you can run:
    • npm start - Thsi runs the app in the development mode. Open http://localhost:3000 to view it in the browser. The page will reload if you make edits.You will also see any lint errors in the console.
    • npm run build - This builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes. Your app is ready to be deployed!

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify


Follow me on Medium and Twitter.

About

GitHub repository for a Medium article on Cloudflare Pages. Read the article using the link below.

http://bit.ly/cdz264

License:MIT License


Languages

Language:JavaScript 41.5%Language:HTML 38.0%Language:CSS 20.5%