This project is a URL shortener application, consisting of server and client folders to run the client application.
- Node.js (version 18 or higher)
- Go (latest version)
- PostgreSQL
-
Navigate to the
client
folder:cd client
-
Copy the sample environment file and configure it:
cp .env.sample .env
-
Install dependencies using either Yarn or npm:
yarn install # or npm install
-
Start the development server:
yarn dev # or npm run dev
- Navigate to the
server/cmd
folder:cd server/cmd
- Copy the sample environment file and configure it:
cp .env.sample .env
- Run the server:
go run main.go
Make sure PostgreSQL is installed and running, and the database configuration in the .env file is correct.
Feel free to contribute to this project by opening issues or submitting pull requests.