How to Install and start Alpas first Application

Search for a command to run...

Waw! I heared about alpas first time. I will try it
Modern software systems often separate control logic from high-performance execution logic. This design is common in networking, distributed systems, operating systems, storage engines, and embedded s

Introduction Engineering software often combines multiple programming languages to leverage their individual strengths. A common approach is to implement computational algorithms in native C or C++ wh

Deadlocks are one of the most common synchronization problems encountered in operating systems and concurrent programming. Although the concept is frequently introduced in textbooks, observing it insi

Memory and resource allocation are fundamental operations inside the Linux kernel. Whether assigning device IDs, managing CPU masks, allocating interrupt vectors, or tracking hardware resources, the k

The Linux scheduler is one of the most important components of the operating system. Every running program, background service, and kernel thread eventually interacts with the scheduler. In this artic

"Alpas is a batteries-included, yet a modular, web framework for Kotlin with a very strong focus on developers' productivity. "
JDK >= 9.0
Gradle >= 5.6
IntelliJ IDEA Community or Ultimate edition
Visit Alpas starter repo on GitHub and clone the repo on your local machine.
At the root of the project there is a script named alpas.
Make it executable: chmod +x ./alpas
Initialize your new project using the full package name: ./alpas init com.example.myapp
Once done, to run your app, do: ./alpas serve
If everything goes well, your web app will be available at http://localhost:8080

Once the new app is initialized, you can start configuring your app. Start with the .env file that is automatically created under the project’s root directory during the initialization.
In this guide, you will quickly make a simple to-do app.
###Set up mysql database:-
Navigate to the .env file under the project root folder.
In .env, update DB_PASSWORD=secret to replace 'secret' with your password; leave blank if you did not setup your MySQL database with a password.
Update DB_DATABASE to point to todolist.
Go to the DatabaseConfig.kt file in todolist > src > main > kotlin > configs.
Uncomment // addConnections(env) by removing //.
Run the project .
In terminal, type ./alpas make:entity task
and tap return
this will create a new entity 'Task' and corresponding table under src > main > kotlin > entities folder.
type ./alpas make:controller TaskController
and tap return - this creates a 'TaskController' under todolist > src > main > kotlin > controllers folder
Navigate to the new routes.kt at todolist > src > main > kotlin
Update the page
In terminal, type ./alpas make:migration create_tasks_table --create=tasks
In terminal, type ./alpas db:migrate
this will migrate the tasks table and columns we created earlier.
Open the welcome.peb file at todolist > src > main > resources > templates and update .
In terminal, type ./alpas serve
