# Which Erlang web framework to use with CouchDB?

**URL:** <https://erlangforums.com/t/which-erlang-web-framework-to-use-with-couchdb/1780>\
**Category:** Questions / Help\
**Tags:** couchdb\
**Created:** [August 25, 2022, 1:11pm UTC](https://erlangforums.com/t/which-erlang-web-framework-to-use-with-couchdb/1780 "2022-08-25T13:11:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gordon](https://erlangforums.com/letter_avatar_proxy/v4/letter/g/3da27b/32.png) [@gordon](https://erlangforums.com/u/gordon)\
**Post date:** [August 25, 2022, 1:11pm UTC](https://erlangforums.com/t/which-erlang-web-framework-to-use-with-couchdb/1780/1 "2022-08-25T13:11:09Z")

</div>

Greetings;

This is my first post. I just started to learn Erlang. I’d like to create a web application. So I’d like to ask that which Erlang web framework should I choose in order to implement a CouchDB database?

Best Regards.

---

<div class="post-metadata">

**Author:** ![fancycade](https://erlangforums.com/user_avatar/erlangforums.com/fancycade/32/1187_2.png) [@fancycade](https://erlangforums.com/u/fancycade)\
**Post date:** [August 27, 2022, 4:41am UTC](https://erlangforums.com/t/which-erlang-web-framework-to-use-with-couchdb/1780/2 "2022-08-27T04:41:55Z")

</div>

You probably want [cowboy](https://ninenines.eu/docs/en/cowboy/2.9/guide/). It isn’t a web framework per se, but it is the server and it has everything you need. Most no nonsense option as it is actively maintained.

[elli](https://github.com/elli-lib/elli) is another interesting option. Not as good of an ecosystem as cowboy, but usable and apparently more performant than cowboy because it doesn’t create as many processes during the request lifecycle. Thats my basic understanding. The performance difference might be of interest since you want to make a database as a service.

Either one would fit your use case fine.

If you want a full on web framework then [Nova](http://www.novaframework.org/) might be of interest.

---

<div class="post-metadata">

**Author:** ![gordon](https://erlangforums.com/letter_avatar_proxy/v4/letter/g/3da27b/32.png) [@gordon](https://erlangforums.com/u/gordon)\
**Post date:** [August 27, 2022, 5:45am UTC](https://erlangforums.com/t/which-erlang-web-framework-to-use-with-couchdb/1780/3 "2022-08-27T05:45:27Z")

</div>

Thanks for the detailed reply.

Here is my detailed use case if you are interested:  
I’m trying to build a micro-saas which will be a scraper.

The idea is:

-Collect some info from the internet.  
-Store the collected data in a couchdb database.  
-Whenever the user wants a file, create a csv file.  
-Serve the files through a website with authentication.

So there should be

1-Actual website part which enables the users to login and allows to change their emails or passwords etc. Download csv files on need.  
2-Backend scraping process. There should be a scraping and data storing work.

---

<div class="post-metadata">

**Author:** ![fancycade](https://erlangforums.com/user_avatar/erlangforums.com/fancycade/32/1187_2.png) [@fancycade](https://erlangforums.com/u/fancycade)\
**Post date:** [August 27, 2022, 8:23pm UTC](https://erlangforums.com/t/which-erlang-web-framework-to-use-with-couchdb/1780/4 "2022-08-27T20:23:06Z")

</div>

I see, so you want to build an app that uses CouchDB as the backend. I thought you wanted to make your own CouchDB.

In that case, you would be better off with a full web framework like Nova. Nitrogen is also an option, but I haven’t tried it.

You could use cowboy, but considering you are a beginner than Nova might be better for you.

Your architecture reminds me of a Nova App I made a while back:

[https://git.sr.ht/~fancycade/feedme](https://git.sr.ht/~fancycade/feedme)

It’s a partially completed RSS/Atom aggregator. Mostly works besides a few bugs.  
You could borrow a lot of ideas from this app. The feed\_server module is the GenServer that fetches the feeds on a schedule. Your background scraper will be quite similar to that.

---

<div class="post-metadata">

**Author:** ![gordon](https://erlangforums.com/letter_avatar_proxy/v4/letter/g/3da27b/32.png) [@gordon](https://erlangforums.com/u/gordon)\
**Post date:** [August 27, 2022, 9:21pm UTC](https://erlangforums.com/t/which-erlang-web-framework-to-use-with-couchdb/1780/5 "2022-08-27T21:21:41Z")

</div>

Thanks a lot, I’ll definitely check it out and most likely ask additional questions. 🙂

> [@fancycade](#):
>
> I see, so you want to build an app that uses CouchDB as the backend.

Yes, that’s exactly what I want.

> [@fancycade](#):
>
> You could use cowboy, but considering you are a beginner than Nova might be better for you.

Well, I couldn’t even install rebar3, anyways didn’t give up yet.

---

<div class="post-metadata">

**Author:** ![Taure](https://erlangforums.com/user_avatar/erlangforums.com/taure/32/846_2.png) [@Taure](https://erlangforums.com/u/Taure)\
**Post date:** [August 28, 2022, 7:26am UTC](https://erlangforums.com/t/which-erlang-web-framework-to-use-with-couchdb/1780/6 "2022-08-28T07:26:11Z")

</div>

If you need any help with Nova ping me here or join our #nova channel at Erlang slack. Happy to help and get you started.

---

<div class="post-metadata">

**Author:** ![gordon](https://erlangforums.com/letter_avatar_proxy/v4/letter/g/3da27b/32.png) [@gordon](https://erlangforums.com/u/gordon)\
**Post date:** [August 28, 2022, 9:35am UTC](https://erlangforums.com/t/which-erlang-web-framework-to-use-with-couchdb/1780/7 "2022-08-28T09:35:23Z")

</div>

Great, thanks for kind offer. Will do.  
Also, after getting my invitation I’ll join to #nova channel.
