You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.6 KiB

Developer Kit Day1

Developer Kit : Frontend

Focus

  • HTML
  • CSS
  • Javascript

Tools

  • Visual Studio Code
    • Ubuntu 20.04
    // to install from Snap store
    $ sudo snap install --classic code
    
    // to run vscode
    $ code .
    
  • NodeJS

Visual Studio Code Extension

  • Live Server
  • Debugger for Chrome

Debugger

Prepare Project

  • ReactJS view is coded in xml markup and compiled using babel to plain R React code

Frontend with ReactJS (Client)

  • Packages
    • create-react-app
    $ npm -g install create-react-app
    
    • Create project "frontend_client" using React Framework code
    $ npx create-react-app frontend_client
    
    • Start the client
    $ cd frontend_client
    $ npm start
    
    $ npm i bootstrap
    
    
    • index.js
    import 'bootstrap/dist/css/bootstrap.css'
    
    • VScode Extension
      • Simple React Snippet
    • Debugging : Chrome React Developer Tool Extension

Backend with ExpressJS (Server)

  • Packages
    • express
    $ npm install -g express-generator
    
    • Create project "backend_server" using Express Framework code with pug (Jade) view
    # express --view=pug backend_server
    
    • Start the Server
    $ cd backend_server
    $ npm start