Flash is a lightweight and expressive web framework for Java. It is a fork of the popular Spark Framework, designed to offer enhanced performance, additional features, and a modernized development experience.
Flash is perfect for building RESTful APIs and simple web applications. Its minimalist design ensures ease of use while maintaining flexibility and power for more advanced needs.
To include Flash in your project, add the following dependency and repository to your pom.xml
:
<dependency>
<groupId>com.pixelservices</groupId>
<artifactId>flash</artifactId>
<version>${flashversion}</version>
</dependency>
<repository>
<id>pixel-services-releases</id>
<name>Pixel Services</name>
<url>https://maven.pixel-services.com/releases</url>
</repository>
Here’s a simple example of a Flash application:
import static flash.FlashServerHelper.*;
public class HelloWorld {
public static void main(String[] args) {
get("/hello", (req, res) -> "Hello, World!");
}
}
Flash maintains compatibility with most of Spark's API and documentation. To get started, you can refer to the Spark Documentation. For features specific to Flash, check out our project repository: Flash on GitHub.
We welcome contributions! To contribute to Flash:
- Fork the repository: Flash on GitHub
- Create a feature branch:
git checkout -b feature-name
- Commit your changes:
git commit -m 'Add feature'
- Push to the branch:
git push origin feature-name
- Submit a pull request.
Flash is a fork of the Spark Framework. We extend our gratitude to the Spark community for their foundational work and inspiration.
Start building with Flash today! 🚀