Coder Social home page Coder Social logo

noted's Introduction

Noted

An application for keeping notes and particularly quickly capturing them via the Telegram messaging app.

I've referenced this project a lot when doing other projects since it combines a few things I like to use.

  • SQLite
  • Telegram bot API
  • PETAL stack (Phoenix, Elixir, Tailwind CSS, Alpine.js, LiveView)

Setting it up

To get started:

  • Install dependencies with mix deps.get
  • Set up a Postgres database on your machine with a username and password matching the things in config/dev.exs.
  • Create and migrate your database with mix ecto.setup.
  • Install Node.js dependencies with npm install inside the assets directory
  • Create a Telegram bot as instructed here.
  • Make sure to set environment variables: TELEGRAM_BOT_SECRET and TELEGRAM_BOT_NAME to the respective values for your bot.
  • Start Phoenix endpoint with mix phx.server
  • To start a docker container instance docker run -p 4000:4000 -e DATABASE_URL="ecto://./database.db" -e TELEGRAM_BOT_NAME=" " -e TELEGRAM_BOT_SECRET=" " -e SECRET_KEY_BASE=" " noted and replace env var.

Now you can visit localhost:4000 from your browser.

You will be able to log in by sending the /start message with the relevant auth data to the bot.

Then any message you send the bot will be ingested and turned into a note. Including files and pictures.

noted's People

Contributors

lawik avatar m13m avatar

Stargazers

shuirong avatar Nesad avatar Charlie Holtz avatar Iván Hernández Cazorla avatar Vadim Vprodus avatar David Viramontes avatar Daniel Kuroski avatar Ilya Druzhinin avatar Luca Zhang avatar Henricus Louwhoff avatar Danny George avatar Maxim Portnyagin avatar Sivaram Konanki avatar Tiago Moraes avatar Connor Rigby avatar David Schainker avatar Pat Collins avatar Roberto Amorim avatar John Barker avatar Jason Axelson avatar Mads Schou avatar Cody Brunner avatar girorme avatar Pablo Dávila avatar Yos avatar  avatar  avatar Kami Development avatar  avatar Sam Iso avatar Michal Slaski avatar Andreas Eriksson avatar Mohammad Mohammadi avatar Andrei avatar Kleber Tertulino avatar Henning Dahlheim avatar Samuel Maynard avatar

Watchers

Sam Iso avatar James Cloos avatar  avatar  avatar

noted's Issues

noted app deployment

noted deployment strategies for the bare metal server:

  • Elixir releases is a great way to archive application within the BEAM ecosystem.
  • we could take these releases after every merge we can this elixir release of the noted.
  • rsync or sftp similar tooling could be used to deploy the noted app on the bare metal server.

we could have a deployment script that could trigger after the merge and release are generated or something manual

let me know if you have any more ideas where deployment strategies could be improved without a big downtime.

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.