Skip to content

EventSync - Go backend (not deployed) using postgresql database serving static pages and a nextjs frontend (deployed)

License

Notifications You must be signed in to change notification settings

adistrim/gohttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gohttp

Project setup

  1. Clone the repository
git clone https://github.com/adistrim/gohttp
cd gohttp
  1. Setting up mysql database
mysql -u your_username -p your_database_name < backup.sql
  1. 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
  1. Install the dependencies
cd src
go mod tidy
cd ../frontend
npm install
  1. Run the project
./start.sh
  1. Open your browser and navigate to http:https://localhost:3000

License

MIT License

About

EventSync - Go backend (not deployed) using postgresql database serving static pages and a nextjs frontend (deployed)

Topics

Resources

License

Stars

Watchers

Forks