netforenotes

command module
v0.0.0-...-18c62bb Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

Netforenotes

Simple notes project for NetForemost interview process. Watch it here netforenotes.vercel.app.

User stories

Time spent in the backend development by user story.

Usert story Golang code Tests Total
Project setup 2 - 2
Create notes 2 2 4
Get and sort notes 3 2 5
Edit and delete notes 3 2 5
Search notes 2 2 4

Running tests

go test ./...

Running locally

Go server

It needs a APP_PORT env variable, so from the root directory:

APP_PORT=4000 go run main.go
Svelte front-end

A VITE_API_URL env variable that points to the Golang server is needed. Vite allow us to put env variables in a .env file, so create one with the command touch interface/web/.env and add the following content:

VITE_API_URL=http://localhost:4000

Navigate to web, install the dependencies and run the application:

cd interface/web
pnpm install
pnpm dev

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
interface
api
api/openapi
Package openapi provides primitives to interact with the openapi HTTP API.
Package openapi provides primitives to interact with the openapi HTTP API.
store

Jump to

Keyboard shortcuts

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