This is the backend for the notes
project. It is a RESTful HTTP server written in Go which allows you to keep notes. These notes are saved in a file containing an SQLite database (which you can open yourself with the proper tools).
Before you can get started you need to install Go. After that you can install the backend by opening a command prompt and entering:
go get -u -v github.com/ojz/notes-backend
Now that you have installed the backend, you can start it using the following command:
notes-backend
You can see all the options that are supported by typing:
notes-backend -help
When you have the server running you can interact with it by sending it HTTP requests. You could, for example, use the fetch API in JavaScript for this. Take a look at the build.sh
file to see what kinds of requests you can send.
Note that if you type source build.sh
in a bash terminal, you will be able to send HTTP requests through the command line using the get
, post
, etc... functions defined in build.sh
.