Skip to content

Latest commit

 

History

History
40 lines (36 loc) · 956 Bytes

README.md

File metadata and controls

40 lines (36 loc) · 956 Bytes

React server render (SSR)

This is an sample project for Server Side Render(SSR) Application with React and Next.js, from a Pluralsight course React Apps for Beginners

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Clone Repository
 $ git clone https://github.com/purrox/react-server-render.git 
Install dependencies
 $ npm install
Run json server
 $ jsonserver db.json
Run locally
 $ node server.js
Docker build
 $ docker build -t <IMAGE_NAME> .
Docker images
 $  docker images
Create Tag
 $ docker tag <IMAGE ID> <USER>/<IMAGE_NAME>
Run docker image
 $ docker run -d -p 3333:3000 <USER>/<IMAGE_NAME>:latest