Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mochi/mochiweb
MochiWeb is an Erlang library for building lightweight HTTP servers.
https://github.com/mochi/mochiweb
Last synced: 3 days ago
JSON representation
MochiWeb is an Erlang library for building lightweight HTTP servers.
- Host: GitHub
- URL: https://github.com/mochi/mochiweb
- Owner: mochi
- License: other
- Created: 2010-05-22T17:48:06.000Z (over 14 years ago)
- Default Branch: main
- Last Pushed: 2024-03-21T22:35:31.000Z (9 months ago)
- Last Synced: 2024-10-29T15:04:24.012Z (about 1 month ago)
- Language: Erlang
- Homepage:
- Size: 1.55 MB
- Stars: 1,871
- Watchers: 121
- Forks: 473
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
- Support: support/test-materials/create-certs.sh
Awesome Lists containing this project
- my-awesome - mochi/mochiweb - 03 star:1.9k fork:0.5k MochiWeb is an Erlang library for building lightweight HTTP servers. (Erlang)
- fucking-awesome-elixir - mochiweb - MochiWeb is an Erlang library for building lightweight HTTP servers. (HTTP)
- awesome-erlang - MochiWeb - An Erlang library for building lightweight HTTP servers. (Web Frameworks)
- awesome-elixir - mochiweb - MochiWeb is an Erlang library for building lightweight HTTP servers. (HTTP)
- freaking_awesome_elixir - Erlang - MochiWeb is an Erlang library for building lightweight HTTP servers. (Top 20 packages)
README
# MochiWeb
MochiWeb is an Erlang library for building lightweight HTTP servers.## Overview
MochiWeb provides a lightweight and fast solution for building HTTP servers in Erlang. The library provides features for building robust and scalable HTTP servers.## Getting Started
Before you can use MochiWeb, you'll need to have [Erlang OTP](https://www.erlang.org/) installed. Once you have Erlang OTP installed, you can download the latest version of MochiWeb from the [GitHub repository](https://github.com/mochi/mochiweb).For a MochiWeb project, first obtain a copy of MochiWeb using Git by running the command.
```erlang-repl
$ git clone git://github.com/mochi/mochiweb.git.
```
To create a project.```erlang-repl
$ cd mochiweb
$ make app PROJECT=exampleName
```You can now start the project with.
```erlang-repl
$ cd ../exampleName/
$ make
$ ./start-dev.sh
```You can access the app by navigating to http://localhost:8080 in your browser.
For an example, view the `example_project` in the `examples/` folder.
## Benefits
* Lightweight: MochiWeb is designed to be lightweight and fast, making it ideal for use in resource-constrained environments.* Easy to use: MochiWeb provides a simple and intuitive API that makes it easy to get started with building HTTP servers.
* Robust: MochiWeb provides a comprehensive set of features for building robust and scalable HTTP servers.
## Documentations and Resources
[Information about Rebar (Erlang build tool)](https://github.com/erlang/rebar3)[Mailing list](https://groups.google.com/group/mochiweb/)
## OTP 21.2, 21.2.1, 21.2.2 warning
OTP 21.2 (up to and including 21.2.2) introduced an SSL regression that
makes these releases unsafe to use. See [ERL-830](https://bugs.erlang.org/browse/ERL-830).
This issue was resolved in OTP 21.2.3.## Contributing
MochiWeb is an open-source project and welcomes contributions from the community.