Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/littledivy/candyscript
A minimal single-line programming language for writing web servers and restAPIs :candy: :relieved: :rocket:
https://github.com/littledivy/candyscript
asynchttpserver candy language nim nim-lang nimble programming-language server webserver
Last synced: 14 days ago
JSON representation
A minimal single-line programming language for writing web servers and restAPIs :candy: :relieved: :rocket:
- Host: GitHub
- URL: https://github.com/littledivy/candyscript
- Owner: littledivy
- Created: 2020-03-20T07:57:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-08T14:03:22.000Z (over 3 years ago)
- Last Synced: 2024-10-10T18:15:19.288Z (27 days ago)
- Topics: asynchttpserver, candy, language, nim, nim-lang, nimble, programming-language, server, webserver
- Language: Nim
- Homepage:
- Size: 312 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CandyScript
CandyScript is a lightweight yet superfast language for forging small web servers and RestAPIs.
[![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](https://opensource.org/licenses/)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)## Related
A maintained fork of `candyscript` by @benob https://github.com/benob/candyscript## Features
* Line-by-line parser
* One of the fastest web server powered by Nim's `asynchttpserver`
* Short and efficient
* No external database service required.
* < 85 lines of Nim code!
* A single binary for everything## TODO
* [ ] Add backend integration with other languages
* [ ] Add multiple database integration
* [ ] Use `httpbeast` instead of `asynchttpserver`## Example
### Hello, World!
```yaml
# this is a comment
GET "/": Hello, World!
```## Building from source
Use the Nim compiler [nim](https://nim-lang.org) to compile the Bloom source code.
This code will run your candyscript server.
```bash
nim c index.nim
./index your_script.candy
```## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)