https://github.com/definev/gonote
Simple golang note API
https://github.com/definev/gonote
Last synced: 11 months ago
JSON representation
Simple golang note API
- Host: GitHub
- URL: https://github.com/definev/gonote
- Owner: definev
- Created: 2022-06-16T12:59:20.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-16T12:59:56.000Z (about 4 years ago)
- Last Synced: 2025-03-23T21:14:41.186Z (about 1 year ago)
- Language: Go
- Size: 8.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Note API
A simple note API.
# Installation
Install [go](https://go.dev/dl/) and [postgres](https://www.postgresql.org/download/).
# Build and run
You must start your postgres database.
On macOS, intel chip let set an alias for `PGDATA` in zshrc if you use zsh or other config file if you use other one.
```sh
export PGDATA="/usr/local/var/postgres/"
```
if you install postgres via homebrew set `PGDATA`
```sh
export PGDATA="/opt/homebrew/var/postgres"
```
If you have a trouble go this [stackoverflow](https://stackoverflow.com/a/33015649) questions.
Create new database
```sh
psql -h localhost
CREATE DATABASE gonote;
```
Ready to go! Just run this command and your server is live in `localhost:3000`
```sh
make run
```
# Docker
Docker setup is not complete yet.