Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork19
primaryobjects/Node.js-React-Starter-Template
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A quick and easy Node.js +Express +React template project, using TwitterBootstrap 5.0 and React Router for creating a simple single page application.
Also available forPug.
- Clone repository.
- Open a command prompt, navigate to the folder, and enter:
npm install - Navigate to the folder
clientand enter:npm install - Next, run a build of the React client by entering:
npm run build - Launch the node server by navigating to the root folder and entering:
npm start - Browse tohttp://localhost:3000
Navigate to the folder
clientand enter:npm startThis will run the React client app.
You can make changes to the pages in
/client/src/componentsand see them update live.
If you receive an error:export NODE_OPTIONS=--openssl-legacy-provider use the followingsteps:
- Linux
export NODE_OPTIONS=--openssl-legacy-provider- Windows
set NODE_OPTIONS=--openssl-legacy-provider- PowerShell
$env:NODE_OPTIONS = "--openssl-legacy-provider"- client/src/index.js
- client/src/App.js
- client/src/components/Header/index.js
- client/src/components/Footer/index.js
- client/src/components/Home/index.js
- client/src/components/About/index.js
- client/src/components/Contact/index.js
- client/src/components/NotFound/index.js
Editclient/src/components/Home/index.js to add your content to the Home page. The default contents include:
classHomeextendsComponent{render(){return(<><h1>Home</h1><p>Home</p></>)}}
Kory Beckerhttp://www.primaryobjects.com/kory-becker
About
Node.js Express React 4 Single Page App Starter Template with Bootstrap
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
