A modern, scalable file storage application built with Spring Boot, React, and PostgreSQL, containerized with Docker. This application serves as a robust solution for managing and storing files(profile pictures for now) in a secure and organized manner. It provides a user-friendly interface for uploading, downloading, and managing files while ensuring data persistence and security. The system is designed to handle various file types and sizes, making it suitable for both personal and enterprise use cases.
Key aspects of the application:
- Secure Storage: Files are stored securely in the database with proper access controls and encryption
- User Management: Complete user authentication and authorization system to manage file access
- Scalable Architecture: Built with microservices architecture, making it easy to scale and maintain
- Cloud-Ready: Containerized deployment makes it easy to deploy on any cloud platform
- Real-time Updates: Users can see their file changes in real-time
- Cross-Platform: Access your files from any device with a modern web browser
- Spring Boot
- PostgreSQL
- Docker
- Maven
- React
- Modern UI components
- Responsive design
- Docker & Docker Compose
- Nginx for reverse proxy
- AWS Elastic Beanstalk support
- Docker and Docker Compose
- Node.js (for local development)
- Java JDK 17 or later
- Maven
-
Clone the repository:
git clone <repository-url> cd fullstack-filestorage
-
Start the application using Docker Compose:
docker-compose up -d
-
Access the applications:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8088
- PostgreSQL: localhost:5432
The application uses the following environment variables:
POSTGRES_USER: Database username (default: root)POSTGRES_PASSWORD: Database password (default: root123)POSTGRES_DB: Database name (default: customer)SPRING_DATASOURCE_URL: Database connection URL
- Frontend: 3000
- Backend API: 8088
- PostgreSQL: 5432
fullstack-filestorage/
āāā backend/ # Spring Boot application
ā āāā src/ # Source code
ā āāā pom.xml # Maven configuration
ā āāā Dockerfile # Backend container configuration
āāā frontend/ # Frontend applications
ā āāā react/ # React application
ā āāā angular/ # Angular application (alternative)
āāā docker-compose.yml # Docker services configuration
āāā nginx.conf # Nginx configuration
āāā pg_hba.conf # PostgreSQL access configuration
The application is configured for deployment on AWS Elastic Beanstalk using the provided Dockerrun.aws.json file.
- PostgreSQL access is configured through
pg_hba.conf - Nginx reverse proxy for secure communication
- Environment variables for sensitive data
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Spring Boot team
- React team
- PostgreSQL team
- Docker team
- Amigoscode(YouTube) and team