Skip to content

SpaceX Launch Programs - Server Side Rendering using React and Node.js

Notifications You must be signed in to change notification settings

dixitrathod16/spacex-ssr

Repository files navigation

spacex-ssr

SpaceX Launch Programs - Project to demonstrate Server Side Rendering using React and Node.js

This is a sample front end react project which is Server Side Rendered.

Server Side rendering means rendering your React components on the Server and sending HTML pages pre-populated to the client - This can lead to a better user experience and Search Engine discoverability.

On the browser, when the javascript runs, react will realize that the component is already there and take over for front-end interactivity, skipping the initial render.

Technology

  • Creation of node server using Express which will render the content for initial request

  • Creation of React components using latest React features such as react hooks, react routers etc.

  • Data Fetching on the Server using isomorphic-fetch package

  • Data Fetching with Routing (Server-side & Client-side)

  • Use of Webpack and Babel Scripts for Build Workflow to create final executable build.

  • Use of Media Queries to create fully responsive UI for Mobile, Tablet and Desktop views.

Build & Run Instructions

  1. This repository contains both the original source code of the project

  2. To build and run the code in this directory, ensure you have npm installed

  3. Install : clone this repository, navigate to the directory of project from terminal and run below commands to install dependencies.

npm install
  1. Start the application : Run below command from the project directory to start the project
npm start
  1. Opne the browser and navigate to localhost:5001

You'll see below startup page.

Desktop:

image

Tablet:

image

Mobile:

image image

Lighthouse Score:

image

About

SpaceX Launch Programs - Server Side Rendering using React and Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published