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.
- Clone the repo
cd
into the projectnpm install
- Refactoring single-file servers into a folder structure
All of the code works! Your task is to refactor the routes from the main index.js
file into the /api
directory following the same refactor pattern you studied in these examples and exercises.
You'll know you're done when nothing has changed ... from the user's perspective :) This exercise is all about developer experience and maintainable/testable code bases.
All done and looking for a little extra? Refactor your code to use async/await