basic_webserver
basic_webserver
This is a super light and fast webserver built with Kemal (http://kemalcr.com/)
Install Crystal
You need to have Crystal installed first. Some good instructions are here https://crystal-lang.org/docs/.
Below are the general steps.
On a Mac
brew update
brew install crystal-lang
On linux
curl http://dist.crystal-lang.org/apt/setup.sh | sudo bash
sudo apt-get install crystal
You can check crystal is properly installed with: crystal --version
(You probably want to alias crystal
to cr
)
Build
Change to the project directory and run:
shards install
pull in dependencies- quick build:
crystal build src/basic_webserver
- release build:
crystal build --release src/basic_webserver
Running the server
./basic_webserver
To run on port 80: sudo ./basic_webserver -p 80
See more on Kemal here: http://kemalcr.com/
Contributing
- Fork it ( https://github.com/rohanthewiz/basic_webserver/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- rohanthewiz Rohan Allison - creator, maintainer
Repository
basic_webserver
Owner
Statistic
- 0
- 0
- 0
- 0
- 1
- over 8 years ago
- November 28, 2016
License
MIT License
Links
Synced at
Sat, 19 Apr 2025 05:35:48 GMT
Languages