...

/

Introduction to the Notes App

Introduction to the Notes App

Learn how to build a notes application using Go and Beego. Discover the features and endpoints of the application and understand what we will achieve.

Building a CRUD notes application

In the following lessons, we’ll create a CRUD (create, read, update, delete) notes application using the Go programming language and the Beego framework.

Press + to interact

Application endpoints

Our application will provide the following HTTP endpoints to handle various operations on notes:

Request Type

Endpoint

Description

GET

/notes

It will display all the notes available in the application, allowing the user to browse his/her existing notes at a glance.

GET

/notes/new

This endpoint renders a form to create a new note.

POST

/notes

When the user submits the form on /notes/new page, this endpoint is responsible for creating a new note and adding it to our application.

GET

/notes/:id

It enables users to view the details of a specific note. When the user clicks on it, it displays the title and content of the selected note.

GET

/notes/edit/:id

It renders the form to edit the note with the ID passed in the URL

POST

/notes/:id

When users submit the form on /notes/edit/:id, this endpoint will be in charge of updating the note with the modified title and content.

DELETE

/notes/:id

Users can delete a note using this endpoint, allowing them to remove notes they no longer need.

Note attributes

...