Discover Packages
github.com/amandinedrebes/orness
command
module
Version:
v0.0.0-...-f5eeede
Opens a new window with list of versions in this module.
Published: Jul 7, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
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.
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
internal
Click to show internal directories.
Click to hide internal directories.