Skip to content

codepurple007/my-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My App - Spring Boot Web Application

A web application built with Spring Boot, featuring user authentication and SQL Server integration.

Prerequisites

  • Java 17 or higher
  • Docker (for containerized deployment)
  • SQL Server database

Environment Variables

The following environment variables need to be set in production:

DATABASE_URL=jdbc:sqlserver://your-server:1433;databaseName=your-db;encrypt=true;trustServerCertificate=true
DATABASE_USERNAME=your-username
DATABASE_PASSWORD=your-password
PORT=8081 (optional, defaults to 8081)
SSL_ENABLED=true/false (optional, defaults to false)

Deployment Options

1. Deploy using Docker

  1. Build the Docker image:
docker build -t my-app .
  1. Run the container:
docker run -d \
  -p 8081:8081 \
  -e DATABASE_URL=your-database-url \
  -e DATABASE_USERNAME=your-username \
  -e DATABASE_PASSWORD=your-password \
  my-app

2. Deploy on Cloud Platforms

Render

  1. Create a new Web Service
  2. Connect your GitHub repository
  3. Set the following:
    • Build Command: ./mvnw package -DskipTests
    • Start Command: java -Dspring.profiles.active=prod -jar target/*.jar
    • Add the environment variables

Railway

  1. Create a new project
  2. Connect your GitHub repository
  3. Add environment variables
  4. Deploy

Local Development

  1. Clone the repository
  2. Set up your local SQL Server database
  3. Update application.properties with your local database credentials
  4. Run the application:
./mvnw spring-boot:run

Features

  • User authentication (login/register)
  • SQL Server database integration
  • Responsive UI design
  • Session management
  • Production-ready configuration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors