Skip to content

jorbush/postrify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postrify

A microblogging social network built with Angular, Spring Boot (Java) and PostgreSQL.

Architecture

The frontend is a SPA built with Angular and deployed in Vercel (https://postrify.vercel.app/). The backend is a REST API built with Spring Boot (using Java) and deployed in Fly.io (https://postrify-backend.fly.dev/). The frontend and backend communicate through HTTPS requests. The backend is connected to a PostgreSQL database hosted in Supabase.

Architecture

For development environment, the frontend is served by a local server running in port 4200. The backend is served by another local server running in port 8080. The frontend and backend communicate through HTTP requests. The backend is connected to a PostgreSQL database running locally in port 5432.

Frontend

cd postrify-frontend

Development server

ng serve

Build production

ng build --configuration production

Linter

ng lint

Unit tests

npm test -- --no-watch --no-progress --browsers=ChromeHeadless

Format code

npm run format

Backend

cd postrify-backend

Spring Boot backend uses MVC architecture.

Run backend

./mvnw spring-boot:run

Or:

./mvnw clean package
java -jar target/postrify-0.0.1-SNAPSHOT.jar

Run tests

./mvnw test

Linter

./mvnw checkstyle:check

Format code

./mvnw spotless:apply