Full-Stack Development with Ionic and Nitric: Building the Notes Application Part 1
Blog post from Stream
Building on previous work to integrate authentication into an application, this guide details the development of a full-stack note-taking app that allows users to create and view notes. The process begins by introducing necessary dependencies and setting up a styling plugin with Vite, followed by creating a secure API endpoint using middleware to authorize user access through JWT tokens. A storage structure is defined using a key-value database to manage the notes. The guide then outlines the steps for setting up the API to handle GET requests for retrieving user-specific notes, ensuring secure access, and explaining how to handle unauthorized requests. On the client side, a custom React hook is created to fetch notes, utilizing session tokens for authentication. The user interface is designed with React components that manage the display of notes, error handling, and loading states. The guide also covers the creation of a note with validation using a schema and a POST request to save the note, along with a form interface on the frontend to collect note data. The article concludes by previewing further enhancements for editing and deleting notes in a future installment.