Welcome to Go-NoteApp, a straightforward and efficient note-taking web application built with Go! This application allows you to create, view, edit, and manage your notes effortlessly. Whether you're a developer, student, or professional, you'll find Go-NoteApp to be a handy tool for organizing your thoughts and ideas. π
- π Create and Edit Notes: Easily create new notes and edit existing ones.
- π View Notes: View the contents of your notes in a user-friendly interface.
- πΌ Manage Notes: Organize and manage your notes efficiently.
- π Secure: Ensure the security of your notes with local storage.
- π Cross-Platform: Access your notes from any device with a web browser.
To get started with Go-NoteApp, follow these steps:
git clone https://github.com/your-username/go-noteapp.git
cd go-noteapp
For development, you need to install Air for live-reloading. Run:
go install github.com/cosmtrek/air@latest
Create a .air.toml
file in the root of your project to customize Airβs behavior:
# .air.toml
[build]
bin = "./bin/main" # Path to your build output binary
cmd = "go build -o ${build.bin} ." # Command to build your application
include = ["*.go", "templates/**/*.html"] # Files to watch for changes
exclude = ["static"] # Files to exclude from watching
[logger]
time = true # Enable logging with timestamps
Use Air to start the application with live-reloading:
air
This will start the application and automatically restart the server when changes are detected.
For production, build your application and run the resulting binary:
go build -o go-noteapp
./go-noteapp
Open your web browser and go to http://localhost:3000
to access the application.
- Click on the "Create a note!" button on the homepage.
- Enter a title and the content of your note in the provided form.
- Click on the "Create Note" button to save your note.
- Click on the title of the note you want to view from the homepage.
- You will be directed to a page where you can see the title and content of the selected note.
- Click on the "edit" link next to the title of the note you want to edit from the homepage.
- You will be directed to a page where you can edit the title and content of the note.
- After making your changes, click on the "Save" button to update the note.
To deploy this application to a server or platform of your choice:
-
Build the application:
go build -o go-noteapp
-
Deploy the
go-noteapp
binary to your server or platform. -
Run the binary on your server:
./go-noteapp
Ensure the server is set to listen on the appropriate port and is configured for your deployment environment.
Distributed under the MIT License. See LICENSE
for more information.
Feel free to explore the features of Go-NoteApp and customize it according to your needs. Happy note-taking! π