This project purpose is to power the MiXiT website.
This project software design goal is to demonstrate what a functional web application developed with Spring Boot 2, Spring WebFlux and Kotlin can look like:
We use a mongodb instance and this database is managed with a docker file
docker compose up
to start the database and the consolehttp://0.0.0.0:8081
to open the mongodb console./gradlew bootRun
in another terminal./gradlew watch
in another terminalhttp://localhost:8080/
in your browser--debug-jvm
parameter to Gradle command lineSass, TypeScript, messages*.properties
and templates should be live reloaded.
2017.2.x
and IDEA Kotlin plugin 1.1.4+
(menu Tools -> Kotlin -> configure Kotlin Plugin Updates -> make sure "Stable" channel is selected -> check for updates now -> restart IDE after the update)Application.kt
then Run ...
or Debug ...
./gradlew watch
in another terminalhttp://localhost:8080/
in your browserSass, TypeScript, messages*.properties
and templates should be live reloaded.
./gradlew clean build
java -jar build/libs/mixit-1.0.0-SNAPSHOT.jar
When you merge a PR into
prod
branch (usually frommaster
branch) it will trigger a deployment on Clever Cloud.
curl https://mixitconf.org/api/blog | python3 -m json.tool > blog.json
curl https://mixitconf.org/api/faq | python3 -m json.tool > faq.json
curl https://mixitconf.org/api/event | python3 -m json.tool > events.json
curl https://mixitconf.org/api/event/images | python3 -m json.tool > events_image.json
curl https://mixitconf.org/api/user | python3 -m json.tool > users.json
curl https://mixitconf.org/api/2024/talk | python3 -m json.tool > talks_2024.json
git commit -a -m "Update data from PROD"
If you need to restore a Clever Cloud archive in your local db, you can follow these steps
docker exec -it mongo-mixit mongorestore -u=admin -p=mixit23 --drop --noIndexRestore --archive=/tmp/dump/mongodb_XXXX.archive