-
Louis authored
Swerve
Quick and easy multithreaded file server for local development
About
A common misconception about swerve is that the name is a play on the word "serve", as in the purpose of a file server. Contrary to this, swerve actually stands for "Simple Werve" - the goal being to make it super simple to werve your files from anywhere on the filesystem.
While swerve does nothing innovative, the goal is to have a fast performing file server with minimal set up and tear down time, as well as minimal request time spent inside the server itself. Current features are limited to serving files, but the roadmap includes API mocking to make front end development even easier.
##Installation
Prebuilt
- Download the binary for your OS from the releases page
- Put
swerve
somewhere in your$PATH
, or modify your$PATH
to inlcude the folder containingswerve
- Do one of two things:
- Open up a command prompt and
cd
to the folder containing your files and runswerve
cd "$HOME/projects/my_awesome_site" swerve
- Open up a command prompt and run
swerve
, specifying your target directoryswerve -d "$HOME/projects/my_awesome_site"
- Open up a command prompt and
From source
To build and install swerve from source, you will need rustc 1.22.0-nightly
or later as well as the Cargo package
manager