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...
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:
How started to work/colaborate with this project:
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>
cd <my_folder>
npm install
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>
cd <my_folder>
npm install
npm run build
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!
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