Skip to content

Backend for my Blogpost webapp using Spring Boot with GraalVM for Java native image generation, and a HTTP-Only JWT.

Notifications You must be signed in to change notification settings

sudobarre/blogpost-backend

Repository files navigation

Blogpost Backend

Status


Backend for my interactive Blogpost

📝 Table of Contents

🧐 About

The backend for my interactive Blogpost to polish my skills in FullStack development that I totally didn't copy from Reddit. The frontend is available here. To see the app live, visit https://sudobarre.github.io/blogpost/.

This app is built using Spring Boot 3. It uses JWT stored in an HTTP-Only Cookie for better security, as well as a Refresh Token feature. The package is available on ghcr.io/sudobarre/blogpost-backend:latest and it's built with GraalVM Native Build Tools to generate a native executable. To understand more about native image generation, visit here.

I'm more than open to receive comments and constructive criticism on anything regarding the project. Feel free to contact me :)

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development purposes. See [deployment](#deployment) for notes on how to deploy the project on a live system.

You can clone this repo and run it as you would normally, or pull it from Github Container Registry with the command `docker pull ghcr.io/sudobarre/blogpost-backend:latest`.

To build the project, you can either do mvn clean install, or if you want to generate a native image, mvn clean -Pnative native:compile. Remember to pass along the env variables as well.

Prerequisites

Installing

Install Docker

🚀 Deployment

I deployed the Docker image on fly.io, using flyctl deploy --image ghcr.io/sudobarre/blogpost-backend:latest. See here for more info about deploying apps via Dockerfile to fly.io.

⛏️ Built Using

✍️ Author

🎉 Acknowledgements

About

Backend for my Blogpost webapp using Spring Boot with GraalVM for Java native image generation, and a HTTP-Only JWT.

Resources

Stars

Watchers

Forks

Releases

No releases published