- Clone the repository
git clone https://github.com/adistrim/gohttp
cd gohttp
- Setting up mysql database
mysql -u your_username -p your_database_name < backup.sql
- Create a
.env
file in the src and frontend directory of the project and add the following
src/.env
DB_USER=your_username
DB_PASSWORD=your_password
DB_HOST=127.0.0.1
DB_PORT=3306
DB_NAME=your_database_name
SERVER_PORT=port_number
frontend/.env
NEXT_PUBLIC_BACKEND_URL=http:https://localhost:server_port_number
- Install the dependencies
cd src
go mod tidy
cd ../frontend
npm install
- Run the project
./start.sh
- Open your browser and navigate to
http:https://localhost:3000