Serve provides the equivalent of the Views part of the Rails MVC. Partials and layouts make it possible to extract common parts of your website into reusable chunks and templates. Use helper methods to simplify complex logic.
Manage the chaos of your stylesheets with Sass and Compass! Sass adds features like mixins and variables to CSS. Compass provides a “standard library” of sorts or all manner of CSS wizardry.
Edit and tweak your websites on-the-fly with the Serve server. And when you are ready to deploy, you have two options. Either export to a pure HTML static site or deploy the source on any Ruby-friendly web host.
If you use a “Design First” workflow for your web apps you can use Serve to build working HTML prototypes (or mockups) of the finished application to test flow and design decisions, before turning it over to the developers
Since Serve uses plain text files, you can store a project in Git or any other version control system. Combine it with Textile or Markdown and you’ll achieve the perfect Content Management System for developers.
Serve uses Rack and Tilt under the covers. Rack makes it possible to combine Serve with Rails or Sinatra. Tilt allows you to use Serve with almost any Ruby-based Template library. ERB, Haml, Slim, Liquid, Markdown, or Textile.
Want to get the latest news about Serve? Follow @ServeApp on Twitter.
Getting started with Serve is easy. Because Serve is built with Ruby, you will need to have Ruby installed on your system. Mac OSX ships with Ruby. If you are on Windows you can install Ruby with this easy installation package.
Once Ruby is installed, open up the command prompt, and type:
gem install serve
Serve ships with an easy to use command that makes it easy to turn any directory into into a browseable set of web pages. To use it, simply change to the project directory, and type serve:
~$ cd my-project
~/my-project$ serve
This will start Serve up on your local box on port 4000. To view files with Serve, navigate to http://localhost:4000 in your web browser.
As you navigate around in your browser, Serve will print out a log of it’s activity on the command prompt. When you are ready to stop Serve type: Ctrl+C, or close the command prompt window.
Reading source code is a great way to improve your coding prowess. You may want to study one or more of the following projects to get a better idea of how to use Serve effectively.
The Serve Users List is a great place to learn about how to get the most out of Serve. The mailing list is hosted by Google Groups. To subscribe, you can send an email to [email protected].
If you have questions about Serve, you may also want to search the mailing list archives.
If you have a Google account, you can unsubscribe or edit your mailing list preferences by clicking the Preferences button below. If you do not have a Google account, you can unsubscribe from the list by sending an email to [email protected].
All development for Serve takes place on GitHub. If you are interested in helping out, there are a couple of areas where you can contribute:
Need help with forking the project or submitting a pull request? Check out these helpful articles:
Сopyright © 2024 get-serve.com. Serve is open-source software. It is completely free for commercial and non-commercial use. Wanna help?