Installation and Setup
Clone the Repository
git clone https://github.com/cawtoz/dine-api.gitcd dine-api
Configure the .env
File
Copy the content of .env.example
to a new file named .env
in the root of the project:
cp .env.example .env
Then, open the .env
file and update the placeholder values with your PostgreSQL database configuration details:
DATABASE_URL=jdbc:postgresql://localhost:5432/dineDATABASE_DRIVER=org.postgresql.DriverDATABASE_USER=your_db_userDATABASE_PASSWORD=your_db_passwordSERVER_PORT=8080
Build and Run the Project
Ensure you have Gradle installed. Then, execute:
./gradlew run
The server will start on the port specified in the .env
file.