https://github.com/jorbush/postrify
a microblogging social network
https://github.com/jorbush/postrify
angular java postgresql spring-boot typescript
Last synced: 3 months ago
JSON representation
a microblogging social network
- Host: GitHub
- URL: https://github.com/jorbush/postrify
- Owner: jorbush
- License: apache-2.0
- Created: 2024-09-17T18:40:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-13T07:09:56.000Z (over 1 year ago)
- Last Synced: 2025-10-19T16:43:45.857Z (8 months ago)
- Topics: angular, java, postgresql, spring-boot, typescript
- Language: TypeScript
- Homepage: https://postrify.vercel.app
- Size: 1.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

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.

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
```bash
cd postrify-frontend
```
#### Development server
```bash
ng serve
```
#### Build production
```bash
ng build --configuration production
```
#### Linter
```bash
ng lint
```
#### Unit tests
```bash
npm test -- --no-watch --no-progress --browsers=ChromeHeadless
```
#### Format code
```bash
npm run format
```
### Backend
```bash
cd postrify-backend
```
Spring Boot backend uses MVC architecture.
#### Run backend
```bash
./mvnw spring-boot:run
```
Or:
```bash
./mvnw clean package
java -jar target/postrify-0.0.1-SNAPSHOT.jar
```
#### Run tests
```bash
./mvnw test
```
#### Linter
```bash
./mvnw checkstyle:check
```
#### Format code
```bash
./mvnw spotless:apply
```