orness

command module
v0.0.0-...-f5eeede Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

REST API server

The server will store and return notes. It will work with the JSON representation of the notes

Running api server:

  • go run main.go [-ip ] [-port ]

IP is an optional argument: 127.0.0.1 means localhost only (default value: 127.0.0.1) PORT is an optional argument (default value: 4000)

Running test compains:

  • cd internal/core
  • go run test

Bonus:

Information: This exercise can be easily solved by a simple main.go file as the scope is very limited. It is a real position to start splitting code in order to separate API from the backend in order to prepare a real database integration. The concurrency subject is solved by adding a Mutex.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL