Intro/Вступление

noe is a simple note-taking application written in Erlang on top of Yaws, MySQL and Erlyweb. Scroll down for description and instructions in English

noe — это простое приложение для ведения записей, реализованое на Эрланге при помощи Yaws, MySQL и Erlyweb. Ниже есть инструкция/описание на русском

Description and installation instructions

All noe does is saving a snippet of text that may optionally have a title. If you don't provide a title, it will be automatically created for you by truncating the text to first 32 letters.

You may use HTML if you wish, but other than saving it noe actually does nothing else :)

Even though I wrote this little app to educate myself in the ways of Erlyweb, I believe it may now serve as a starting point for others who wish to learn ErlyWeb and find various tutorials incomplete and Yariv Sadan's Twoorl too complex. The only complex piece of code in noe is, probably, JavaScript. You may, however, turn it off in the browser and see how the app behaves in a "more natural" state.

The code is not necessarily beautiful, but it works. I might optimize it a bit later :)

Yes, the use of the regexp module is deliberate. It was just easier this way. I also use the utf8 module by Tony Arcieri because I wanted noe to work with other languages, not only English ;)

In order to install noe, use subversion to check out its code from Github and follow the instructions in the README file

Описание и установка

Единственное, что noe умеет делать — это сохранять текст и, опционально, заголовок к этому тексту. Если заголовка не будет, он будет автоматически составлен из первых 32 букв текста.

Можно использовать HTML, noe ничего с ним не сделает, только сохранит :)

Несмотря на то, что я решил написать это приложение, чтобы выучить ErlyWeb, оно может служить отправной точкой для тех, кто также хочется познакомиться с этим фреймворком и считает, что туториалы недостаточны, а Twoorl Ярива Садана слишком сложен. Единственной сложной частью приложения может показаться только Javascript. Но и эту проблему можно решить, отключив Javascript в браузере.

Код необязательно красив, но он работает. Возможно, позже я его буду оптимизировать :)

Опережая вопросы, да, я специально использовал модуль regexp. Просто так было проще. Для того, чтобы noe нормально справлялся с другими, кроме английского, языками, я использую модуль utf8, созданый by Tony Arcieri

Для установки noe скачайте код с GitHub'а и следуйте иснтрукциям в файле README