#
Games Cafe - React 18
#
Project summary
A simple website designed for an imaginary games cafe company using React 18 and Tailwind.
#
🌐 Page
#
Github repository
#
Setup guide
Set up using Create React App.
npx create-react-app my-app
To run:
npm run start
#
Deploy to Github Pages
Use react-gh-pages.
#
Pre-requisites
- Install
$ npm install gh-pages --save-dev
- Add a homepage property in this format*: https://.github.io/ in
package.json
"name": "my-app",
"version": "0.1.0",
+ "homepage": "https://gitname.github.io/react-gh-pages",
"private": true,
- Add a
predeploy
property and adeploy
property to the scripts object:
"scripts": {
+ "predeploy": "npm run build",
+ "deploy": "gh-pages -d build",
"start": "react-scripts start",
"build": "react-scripts build",
#
Deployment
npm run deploy