Get started with MochiWeb
mainMochiWeb is an Erlang library for building lightweight, fast, and robust HTTP servers. To get started, ensure you have Erlang OTP installed. You can clone the repository and use the provided make command to scaffold a new project.
1. Clone the repository
$ git clone git://github.com/mochi/mochiweb.git.2. Create a new project
Navigate into the cloned directory and use the make app command, specifying your desired project name with the PROJECT variable:
$ cd mochiweb
$ make app PROJECT=exampleName3. Run the project
Navigate to your newly created project directory, build it, and run the development script:
$ cd ../exampleName/
$ make
$ ./start-dev.shBy default, the application is accessible at http://localhost:8080.
$ git clone git://github.com/mochi/mochiweb.git.
$ cd mochiweb
$ make app PROJECT=exampleName
$ cd ../exampleName/
$ make
$ ./start-dev.sh