Git Product home page Git Product logo

ssr-template's Introduction

SSR TEMPLATE

This is a boiler plate project which supports both Server Side Rendering and Client Side Rendering


What are we using in this project?

  • React 16
  • Node 10
  • Webpack 4
  • Babel 7

What is SSR ✈️?

Server Side Rendering is a technique where your React Javascript code is sent down to the browser as pre-rendered HTML.  This is great for SEO as it means your mark up is not rendered in the browser. Also if for some crazy reason one of your users has javascript disabled they will still be able to view your website 🚀.


What is CSR 🚗?

Client Side Rendering allows developers to make their websites entirely rendered in the browser with JavaScript. Instead of having a different HTML page per route. This is the way in which Front end frameworks such as React work by default.


What is Hot Reloading 🔥?

The idea behind hot reloading is to keep the app running and to inject new versions of the files that you edited at runtime. This way, you don't lose any of your state which is especially useful if you are tweaking the UI.


How to use this project

There are two scripts you can run to start the project:

  • dev - this will start the project up using Hot reloading allowing for fast feedback in the Browser as you make changes to the UI.
  • start - this will by default start the project up using SSR, if you wanted to use CSR then you can create a .env file and set the SERVER_RENDERED flag to be false.

Check out the blog post for a more detailed explanation of whats going on:

ssr-template's People

Contributors

gary-george avatar

Stargazers

Axel Bozzola avatar Lucky Indra Efendi avatar Carlos Teles avatar Carlos Teles avatar Sergio Gomez avatar Caner Tüfekçi avatar NICK avatar Zhong ZiChang avatar kokonut tree avatar Mazdak Parnian avatar Gianluca Donato avatar Emmanuel Galindo avatar Marius Wallin avatar Jailson Pacagnan Santana avatar Alex Clever avatar

Watchers

Alex Clever avatar

ssr-template's Issues

Hi, when I try and run npm install I get an SSH error.

Hi, when I try and run npm install I get an SSH error.

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://[email protected]/ev1stensberg/generator.git
npm ERR!
npm ERR! ERROR: Repository not found.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

I've tried everything I can think of, updated my SSH etc. but no luck.

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.