Skip to content

This is a backend for a project that my students need to complete for their frontend class.

Notifications You must be signed in to change notification settings

ojz/notes-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notes-backend

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).

Installation

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

Usage

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

API

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.

About

This is a backend for a project that my students need to complete for their frontend class.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published