Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
leo ouyang authored and leo ouyang committed Apr 22, 2022
1 parent 099ee1d commit 8ce6744
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ free-programming-books](https://ebookfoundation.github.io/free-programming-books
## Installation

### NPM Installation
1. Make sure you have [Node.js](https://nodejs.org/en/) installed. If you already do, skip to [Running the Website](#running-the-website.)
2. Otherwise, download the LTS installer from [Node.js](https://nodejs.org/en/) website.
3. Follow the instructions of the installer, make sure npm is listed as a package to be installed.
4. Click Install.
5. Verify that Node.Js has been installed by going to command line and typing in `node`. It should show the current version.
6. Close out of Node by either closing and reopening the command line or with Ctrl + C.
7. Make sure to check out the [NPM website](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) for more info.
1. Make sure you have [Node.js](https://nodejs.org/en/) installed. If you already do, skip to [Running the Website](#running-the-website.)
2. Otherwise, download the LTS installer from [Node.js](https://nodejs.org/en/) website.
3. Follow the instructions of the installer, make sure npm is listed as a package to be installed.
4. Click Install.
5. Verify that Node.Js has been installed by going to command line and typing in `node`. It should show the current version.
6. Close out of Node by either closing and reopening the command line or with Ctrl + C.
7. Make sure to check out the [NPM website](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) for more info.
### Running the Website
1. Make sure you have [Git](https://git-scm.com/downloads) installed.
2. Clone the repo from Github with Git.
3. Navigate to the folder using command line. (easy way is to type "cd" and then drag and drop the folder into command line)
4. Type `npm install -g`
5. Type `npm install react-scripts`
6. Type `npm start`. At this point, the commnand prompt should start up the server, and a tab in your default browser should open up to localhost.
1. Make sure you have [Git](https://git-scm.com/downloads) installed.
2. Clone the repo from Github with Git.
3. Navigate to the folder using command line. (easy way is to type "cd" and then drag and drop the folder into command line)
4. Type `npm install -g`
5. Type `npm install react-scripts`
6. Type `npm start`. At this point, the commnand prompt should start up the server, and a tab in your default browser should open up to localhost.

## Deployment
1. First, make sure that you the local folder containing the files has a remote configured called "origin".
a. If you aren't sure, navigate to the folder using Git (type "cd", then drag and drop folder in to Git command line.).
b. Type `git init`
c. Type `git remote add origin <repo url>`,replacing <repo url> with the url of your github repository.
2. Now, run `npm run deploy`.
3. This should deploy your code to "https:<username>.github.io/free-programming-books-search/"
1. First, make sure that you the local folder containing the files has a remote configured called "origin".
a. If you aren't sure, navigate to the folder using Git (type "cd", then drag and drop folder in to Git command line.).
b. Type `git init`
c. Type `git remote add origin <repo url>`,replacing <repo url> with the url of your github repository.
2. Now, run `npm run deploy`.
3. This should deploy your code to "https:<username>.github.io/free-programming-books-search/"

0 comments on commit 8ce6744

Please sign in to comment.