Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/funyin/blogmultiplatform
A kotlin multiplatform project featureing kobweb for the server and frontend, compose html and jetpack compose
https://github.com/funyin/blogmultiplatform
jetpack-compose kobweb kotlin kotlinmultiplatform
Last synced: 21 days ago
JSON representation
A kotlin multiplatform project featureing kobweb for the server and frontend, compose html and jetpack compose
- Host: GitHub
- URL: https://github.com/funyin/blogmultiplatform
- Owner: funyin
- Created: 2023-09-28T16:52:24.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:30:06.000Z (about 1 year ago)
- Last Synced: 2023-12-15T03:52:16.354Z (about 1 year ago)
- Topics: jetpack-compose, kobweb, kotlin, kotlinmultiplatform
- Language: Kotlin
- Homepage: https://blogmultiplatform-production.up.railway.app/
- Size: 339 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a [Kobweb](https://github.com/varabyte/kobweb) project bootstrapped with the `app/empty` template.
This template is useful if you already know what you're doing and just want a clean slate. By default, it
just creates a blank home page (which prints to the console so you can confirm it's working)If you are still learning, consider instantiating the `app` template (or one of the examples) to see actual,
working projects.## Prerequisites
Just provide the following keys in your project level `locale.properties` file to be able to build the
app with the proper environment
```properties
MONGO_URI=""
BASE_URL=http://localhost:8080
```## Getting Started
First, run the development server by typing the following command in a terminal under the `site` folder:
```bash
$ cd site
$ kobweb run
```Open [http://localhost:8080](http://localhost:8080) with your browser to see the result.
You can use any editor you want for the project, but we recommend using **IntelliJ IDEA Community Edition** downloaded
using the [Toolbox App](https://www.jetbrains.com/toolbox-app/).Press `Q` in the terminal to gracefully stop the server.
### Live Reload
Feel free to edit / add / delete new components, pages, and API endpoints! When you make any changes, the site will
indicate the status of the build and automatically reload when ready.## Exporting the Project
When you are ready to ship, you should shutdown the development server and then export the project using:
```bash
kobweb export
```When finished, you can run a Kobweb server in production mode:
```bash
kobweb run --env prod
```If you want to run this command in the Cloud provider of your choice, consider disabling interactive mode since nobody
is sitting around watching the console in that case anyway. To do that, use:```bash
kobweb run --env prod --notty
```Kobweb also supports exporting to a static layout which is compatible with static hosting providers, such as GitHub
Pages, Netlify, Firebase, any presumably all the others. You can read more about that approach here:
https://bitspittle.dev/blog/2022/staticdeploy