Coder Social home page Coder Social logo

hanok2 / cai-notepad Goto Github PK

View Code? Open in Web Editor NEW

This project forked from caiwan/cai-notepad

1.0 0.0 0.0 882 KB

A vue + flask based notebook and task manager

Dockerfile 0.64% JavaScript 23.39% HTML 0.07% Vue 20.90% Shell 1.77% Python 49.07% SCSS 4.17%

cai-notepad's Introduction

Cai-Notes

Yet another self-hosted note taking app and TODO list manager.

This version is at pre-alpha version at the moment

Setup for hosting

For development instructions see below.

Using Docker

  1. Prerequisites

    Install docker and docker-compose. See official instructions for installation of Docker and Compose.

  2. Create docker images

    • run docker-compose build to build individual images
    • run docker-compose up
    • or to detach it right away to run it in the background docker-compose up -d

    For further configuration see docker-compose.yaml and Dockerimage files in the source root, and other configuration files in docker/ folder. Detailed in docker.md.

    Note that you also can create your individual Docker images via

    • docker build -t notes-backend -f docker/backend/Dockerfile ./
    • docker build -t notes-frontend -f docker/frontend/Dockerfile ./

Features

TBD, See SPECS.md for rough details

Setup and launching app for development

  1. Prerequisites

To build manually you'll need the following packages installed:

  • Python 3.7 and pip 18.1 (optionally within a virtual environment) for backend
  • Node 11.7 and NPM 6.5 for frontend
  1. Start frontend
cd frontend
npm i
npm run dev
  1. Start backend

Install all the dependencies:

cd backend
pip install Cython && pip install -r requirements.txt && pip install -r requirements-dev.txt
python manage,py createdb
cp dev.env .env
python manage.py runserver
  1. Integrated Development Environment

We prefer Visual Studio code. Therefore an environemnt config is already supplied with the repo, altogether with different .*rc files. The following configuration / linting and quality tools are used:

  • flake8 (Recommended VSCode plugins: Python, Test Explorer UI, Python Test Explorer)
  • eslint (Recommended VSCode plugins: vue, vetur, eslint, beautifyrc)
  • editorconfig (Recommended VSCode plugins: editorconfig)

Contribution

Any contribution ot this project is welcomed, and appreciated, however there isn't any developer guideline set at this moment.

  • For python static code analysis an style check we use flake8, however it's not fully configured.

Running tests

Make sure that requirements for development has been installed pip install -r requirements-dev.txt

  1. backend

    cd backend/
    python tests.py
  2. frontend

    • There's none ATM

Future development

TBD

Known issues

  • On some enviromnent, live reload of the backend app simply doens't work, and stuck.
  • DB restore script doesn't work due foreign key issues on insertion.
  • When DB disconnects, Backand can't recover.

cai-notepad's People

Contributors

caiwan avatar dependabot[bot] avatar psaripp avatar

Stargazers

Zed Hanok 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.