Giter Site home page Giter Site logo

primaryobjects / node.js-react-starter-template Goto Github PK

View Code? Open in Web Editor NEW
29.0 3.0 21.0 415 KB

Node.js Express React 4 Single Page App Starter Template with Bootstrap

JavaScript 93.20% HTML 4.74% CSS 1.89% Procfile 0.17%
nodejs node-js react reactjs react-router reactrouter react-component express expressjs express-js

node.js-react-starter-template's Introduction

Node.js Bootstrap Express React Starter Template

A quick and easy Node.js + Express + React template project, using Twitter Bootstrap 5.0 and React Router for creating a simple single page application.

Also available for Pug.

Node.js React, React Router, Twitter Bootstrap template screenshot.

Usage

  • Clone repository.
  • Open a command prompt, navigate to the folder, and enter: npm install
  • Navigate to the folder client and 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 to http://localhost:3000

Development Usage

  • Navigate to the folder client and enter: npm start

    This will run the React client app.

    You can make changes to the pages in /client/src/components and see them update live.

Legacy OpenSSL Provider

If you receive an error: export NODE_OPTIONS=--openssl-legacy-provider use the following steps:

  • Linux
export NODE_OPTIONS=--openssl-legacy-provider
  • Windows
set NODE_OPTIONS=--openssl-legacy-provider
  • PowerShell
$env:NODE_OPTIONS = "--openssl-legacy-provider"

Contents:

  • 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

Editing Pages:

Edit client/src/components/Home/index.js to add your content to the Home page. The default contents include:

class Home extends Component {
  render() {
    return (
      <>
        <h1>Home</h1>
        <p>Home</p>
      </>
    )
  }
}

Author

Kory Becker http://www.primaryobjects.com/kory-becker

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.