Skip to content

Using create-react-app with React Router + Express.js and Docker. This is a naive and simple way where server-side rendering is not required.

Notifications You must be signed in to change notification settings

markdhel/routed-react

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using create-react-app with React Router + Express.js

See : https://medium.com/@patriciolpezjuri/using-create-react-app-with-react-router-express-js-8fa658bf892d

Development

Clone this repository:

git clone https://github.com/mrpatiwi/routed-react.git
cd routed-react

Install dependencies:

npm install

Start the project at http://localhost:3000.

npm start

Running with Docker

Be sure to install Docker and start a Docker-machine if necessary.

Let's create an image named routed-react:

docker build -t routed-react .

Finally, start a container named routed-react-instance at port 80.

docker run -p 80:9000 --name routed-react-instance routed-react

Testing

npm test

About

Using create-react-app with React Router + Express.js and Docker. This is a naive and simple way where server-side rendering is not required.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.7%
  • HTML 11.7%
  • CSS 7.6%