Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ The free-programming-books-search is a companion project of [free-programming-bo
5. Type `npm install react-scripts`.
6. Type `npm start`. At this point, the command prompt should start up the server, and a tab in your default browser should open up to localhost.

#### Serving the production build locally

Type `npm run serve` if you want run the optimized production build in a local server.

At this point, the command prompt should build the app and start up the server.

Open a tab in your default browser and go to `http://localhost:3000`.

## Deployment

MAKE SURE YOU HAVE COMPLETED THE INSTALLATION STEPS FIRST!
Expand Down
130 changes: 130 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"deploy": "gh-pages -d build",
"start": "react-scripts start",
"build": "react-scripts build",
"build:develop": "cross-env NODE_ENV=development PUBLIC_URL=. react-scripts build",
"preserve": "npm run build:develop",
"serve": "npx serve -s build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
Expand All @@ -47,6 +50,7 @@
]
},
"devDependencies": {
"cross-env": "^7.0.3",
"gh-pages": "^3.2.3"
}
}