Welcome to the backend repository for the Bangkit 2024 Batch 6 capstone project! This backend serves the mobile app for our project.
- Authentication: User authentication and authorization.
- ...
- ...
To set up the backend for the capstone project, follow these steps:
-
Clone the Repository:
git clone https://github.com/javakanaya/ulascan.git
-
Set Up PostgreSQL Database: Connect to your PostgreSQL database:
psql -U <your_user>
Create the database
CREATE DATABASE ulasacan";
Run the following SQL command to enable the uuid-ossp extension:
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
-
Set Environment Variables: Create a
.env
file in the root directory of the project based on the.env.example
file Define the following environment variables in the.env
file:DB_HOST=<your_database_host> DB_USER=<your_database_user> DB_PASSWORD=<your_database_password> DB_NAME=<your_database_name> DB_PORT=<your_database_port>
-
Run the Application:
go run main.go