ayseakyol / textidor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Textidor

This fun little project is a fullstack text editor. From the frontend a user can:

  • Get a list of all saved files
  • Create a new file
  • Edit an existing file
  • Delete an existing file

This is an in-class project from the web-apps module, check out the module repo for some practice problems before diving right in.


The Setup

  1. Clone the repo
  2. cd into the project
  3. npm install

Learning Objectives

  • Static & Dynamic serving
  • Frontend/Backend, Client/Server
  • Request/Response cycle & logging
  • Express Routing
  • Server Configuration
  • Reverse-engineering

Studying the Demo

All of the code in /public & /config works, study it all! There is also file called demo.min.js for you to run, spend some time playing around with the app before trying to solve the exercises. Here are some tips for studying this code:

  • Understand the /public code, especially actions.js.
    • What method does each function use?
    • Which route does each function trigger?
    • How is the data sent from the frontend to the backend. Query? Param? Body?
  • Check the console in your browser, in VSCode, and access.log every time you click a button
    • Which message was printed first? and from which lines of code?
  • Take it one step further! Study the network tab in your browser's devtools
    • When does a request go out from your browser?
    • When is a request logged in VSCode?
    • When does a response return to your browser?

Reverse Engineering for teh wins!


Complete the Exercise

index.js is full of blanks, fill them in!

About

License:MIT License


Languages

Language:JavaScript 89.5%Language:HTML 9.8%Language:CSS 0.7%