Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lzztt/onenow
https://github.com/lzztt/onenow
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lzztt/onenow
- Owner: lzztt
- License: mit
- Created: 2022-09-10T03:52:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-29T03:24:40.000Z (about 1 year ago)
- Last Synced: 2023-12-29T04:39:44.343Z (about 1 year ago)
- Language: Go
- Homepage: https://www.onenow.life
- Size: 1.35 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# One Now
## Build Proto
```bash
mkdir -p frontend/src/gen backend/genbuf lint proto
buf format proto -w
buf generate
```## Create `localhost` certificate
Install [mkcert](https://github.com/FiloSottile/mkcert), then create `localhost` certificate.
```bash
mkdir cert && cd certmkcert localhost
```## Note files
Note filenames have `_.md` pattern.
A note can have multiple versions. `snowflake_id` identifies a note. `timestamp` identifies a version of a note.
Commands to generate 10 dummy notes:
```bash
mkdir note && cd notefor i in {1..10}; do
file=${i}_`date +%s`.md
echo -e "Title $i\n\nBody $i" > $file;
done
```## Build Backend
```bash
cd backendecho '[email protected]' > .env.development.local
go run .go build
```## Build Frontend
```bash
cd frontendyarn install
yarn test
yarn startyarn build
```