alpas / alpas Goto Github PK
View Code? Open in Web Editor NEW🚀 The Rapid and Delightful Kotlin Web Framework. Easy, elegant, and productive!
Home Page: https://alpas.dev
License: MIT License
🚀 The Rapid and Delightful Kotlin Web Framework. Easy, elegant, and productive!
Home Page: https://alpas.dev
License: MIT License
We have already used Alpas in a few production apps and as we were writing those apps, Alpas went through some significant improvements and stability. There is even a full tutorial app written in Alpas that goes to show you that you can already write a complete app in Alpas. However, we still have few things to address, resolve, and add before we can tag it as version 1.0.
There is no plan to make any significant API changes. As I said, we have already gone through refactoring and design changes while we were working on real apps. But still, consider the current state of Alpas to be unstable and having bugs—both major and minor. Feel free to experiment by writing apps and let us know if you run into any issues.
Here are some non-exhaustive list of things, in no particular order, that I want to get done before 1.0 release.
If you’d like to take an initiative on implementing any of the big features listed above, please get in touch by reaching out to us on our official Slack. We will offer any help you need to get it started and get it done.
Thank you!
I'm looking for a way to capture the current route - the end goal is I want to make a rel canonical to add to pages and the URL will need to be constant.
When app fails to build when building via terminal (./alpas build) I receive a message that app failed to build. However, there is no additional information to work off of. The app does build and service successfully via IntelliJ.
Note - I was able to resolve issue eventually by using the 'yarn dev' command and then './alpas build' - this led to a successful build - in case this helps to narrow down a root cause of the build issue I was having.
The coloring is completely ignored.
Alpas allows you to browse your web app from a different device on the same network by setting SERVE_EXTERNALLY
to true
in an .env
file. The name of the variable is little misleading as it might give an impression that it might be available even from outside. Change it to ENABLE_NETWORK_SHARE
to make it more explicit about what it does.
As discussed, the current way to implement a wildcard route;
get("/<pathParamName:path>", MyCatchAllController::class, "myfunctionname")
I have setup a project using alpas init myapp.web
.
I have then successfully started the server using alpas serve
(also tried alpas watch
).
I then change the default WelcomeController
but changes are not picked up even with a separate gradle build --continuous
(which does pick up changes and recompile).
Let me know if you need further info.
What I would expect is the server to restart when new changes are detected in build
, ideally to not restart unnecessarily when, for example, asset changes are detected.
To see what Alpas version number I am currently on, I need to refer to the build gradle file. Would be awesome if I can run a ./alpas version
or something similar to quickly see what version of Alpas my app is running on.
I get this error when loading and running a project I cloned from repo the first time -
HTTP ERROR 500 javax.servlet.ServletException: java.lang.Exception: Mix manifestMap file /Users/adammiedema/thatappshow/storage/src/main/resources/web/mix-manifest.json doesn’t exist
running ./alpas link:web resolves the issue
I am migrating an existing AWS Lambda function to Alpas and I have a question about how I should implement my AuthChannel (since I won't be using Sessions).
I have this part working so far:
false
for check()
)env
I return false
for check()
. Also, if the format doesn't match what I expected, I return false
for check()
)The auth token has information that I want the ability to access later on when I am actually handling the request. I don't want to have to decrypt the auth token again in my controllers because it is expensive. I would like to just be able to access this data after parsing it in the AuthChannel.
Right now, the information I need is a userId and one other id. This almost sounds like a case for creating a new UserProvider but I am not quite sure if that makes sense or not. I don't actually know anything about the users in this application other than a unique id.
Based on that description, should I be making a UserProvider to save that information or is that weird?
Is there a better place in the call for me to save this information?
If you create multiple controllers using the make:controller
command, the confirmation message is printed only for the last controller in the list even though all the controllers are created.
create a tag to create a hidden method field for method spoofing just like {% csrf %}
This should be user configurable, of course!
As I didn't get any answer within the "Discussions", I will ask here:
What is the state of this project? Is this project dead? Do you need help?
I really like the idea of an "batteries included" Kotlin framework. So whats the plan for the future? Is this a hobby project? Do you keep going?
It's be handy that if I connect my project to MySQL server, that I can create a db via a command - such as currently the database has to exist otherwise I get an error when running. Would be great to get validation that database does not exist with hint on how to create database using command
I receive the below error when running link:web and link:template. However, I have already run those commands previously; so, would like to see a message letting me know command has already been carried out and is all good to go.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ‘:run’.
> Process ‘command ‘/Users/adammiedema/.sdkman/candidates/java/9.0.7-zulu/bin/java’' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Users should be able to serve static assets from outside a class path.
fun<T:List<*>> HttpCall.replyAsJson(payload:T, statusCode:Int = HttpStatus.OK_200) : ResponsableCall {
response = JsonResponse(payload, statusCode)
return this
}
Alpas out-of-the-box MySQL connection config cannot connect to a MySQL 8.0 instance esp. on Windows (haven't tested this on other platforms). It throws an exception with the following message.
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Public Key Retrieval is not allowed
The solution is to set allowPublicKeyRetrieval=true
in the JDBC connection URL.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.