Skip to content

PlatziVideo: Curso Server Side Render con Express, Platzi, EscuejaJS, version 2020

Notifications You must be signed in to change notification settings

FernandoTorresL/Curso_SSR

Repository files navigation

Server Side Render Course with Express, Platzi

(Curso Server Side Render con Express, Platzi, version 2020)

Part of PlatziVideo Project

PlatziVideo Project is the final project on EscuelaJS, Platzi, México and has several previous parts:

  • Curso de Frontend Developer
  • Curso Práctico de React
  • Curso de React Router y Redux
  • Curso de Server Side Render con Express (this repo)
  • and more...

Description

Implement SSR (Server Side Render) on PlatziVideo Project using:

  • Babel, ESLint
  • Nodemon, Dotenv
  • Express (Node.js)
  • React.js
  • Webpack (cacheGroups, vendor files)
  • Build optimizations

Here we created several branches using GitFlow method and integrated all on develop, then finally create release-1.1 branch and integrated to master branch.

Some of the features that were implemented here:

  • Install SASS, FileLoader
  • Use of Nodemon and Dotenv
  • Integrating Webpack with Express
  • Using React with Express
  • Integrating react-router-config(React Router)
  • Defining SSR
  • Fix ESLint errors
  • Preparing deploy

This project begins by cloning another repo.

We take the finish project at 'Curso de React Router y Redux' repository: platzi/PlatziVideo, but using the branch: feature/router-redux This can be done following the steps on section Installation (see that section below).

This is the result, like the previous repo but with Server Side Rendering:

Imgur


Installation

How started to work/colaborate with this project:

Clone this repo

You can use and change <my_folder> on this instruction to create a new folder

git clone --single-branch -branch feature/router-redux git@github.com:platzi/PlatziVideo.git <my_folder>

Change to working directory and install

cd <my_folder>
npm install

How to view this project

Clone this repo

You can use and change <my_folder> on this instruction to create a new folder

git clone git@github.com:FernandoTorresL/Curso_SSR.git <my_folder>

Change to working directory and install

cd <my_folder>
npm install

Compile (optional)

npm run build

Create .env file (only .env.example on github)

vi .env

Using .env.example file, you can copy the instructions there and paste them on .env file like this:

ENV=development
PORT=3001

you can change the port, of course!

Execute

Now, open a new terminal, in the same folder, and execute with

npm run start:dev

Finally, you can view the project on localhost:<your_port> Remember that you must use the same port that you define on your .env file


Follow me

🌐 Twitter, Instagram: @fertorresmx