Code Monkey home page Code Monkey logo

noto's Introduction

NOTO Status

Noto γƒŽγƒΌγƒˆ (nōto) is an app for storing your notes privately. You can host it on your localhost or your own server, ensuring that your data is entirely yours and not owned by anyone else.

Table of Contents

Development

Running Local Server

  1. Clone the Repository

    git clone https://github.com/Shiyinq/noto.git
    cd noto
  2. Install Go Modules

    go mod tidy
  3. Create .env File

    cp .env.example .env
  4. Install Air for Live Reloading

    If you don't have air installed on your machine, install it first:

    go install github.com/air-verse/air@latest
  5. Run the Development Server

    air
  6. Server

    http://localhost:8080

Generate Swagger Documentation

  1. Install Swagger for API Documentation

    If you don't have swag installed on your machine, install it first:

    go install github.com/swaggo/swag/cmd/swag@latest
  2. Generate or Update Documentation

    swag init -g ./cmd/server/main.go --parseDependency --parseInternal --output docs/swagger

    Or you can use the swag.sh script:

    For the first time, before running the script, execute:

    chmod +x docs.sh
    

    Then, run:

    ./swag.sh
    
  3. Swagger Documentation

    http://localhost:8080/docs/index.html

Deployment

Before you begin, ensure you have Docker installed.

1. Clone the Repository

git clone https://github.com/Shiyinq/noto.git
cd noto

2. Create Environment Files

For the backend:

cp .env.example .env

For the frontend:

cd cmd/client
cp .env.example .env
cd ../../

Open each .env file you have created and update the values as needed.

3. Build and Run the Docker Containers

docker compose up --build -d

Wait a few minutes for the setup to complete. You can then access:

noto's People

Contributors

shiyinq avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.