4IT580: Docs
4IT580 WebGithub

11th Practical Class:
Getting Real!

Data Transformation

const newData = transformFn(data)





 

 


React Newsletters

How to Create the Frontend:
Create React App

  1. Create project:

npx create-react-app 4it580-cra

  1. add: .editorconfig
  1. add .prettierignore
  1. add .prettierrc.yaml
  1. add .env
  1. add .nvmrc

...or use command: node --version > .nvmrc

  1. install prettier
  1. edit "scripts" section of package.json
  1. install dependencies
  1. add src/Routes.js

(more info about react-router setup)

  1. change src/App.js
  1. add src/pages/HomePage.js

How to Create the Backend:
Backpack

Vanilla JS

  1. create 4it580-backend folder
  1. create package.json
  1. add Express.js
  1. create src/index.js
  1. run the server

Add Backpack
("Create React App for backend")

  1. add backpack
  1. add "scripts" to package.json
  1. run dev server

How to Create Server-Side Rendering:
Next.js