This guide will help you setup Sunaar on your local machine.
Instructions
- Node.js v16.14.2
- Go v1.19
- Clone the repository
git clone https://github.com/TechAtikiN/sunaar
Frontend
- Navigate to the
/client
directory
cd client
-
Rename the
.env.example
file to.env.local
file in theclient
directory -
Fill in with the relevant environment variables
Backend
- Navigate to the
/server
directory
cd server
-
Rename the
.env.example
file toapp.env
file in theserver
directory -
Fill in with the relevant environment variables
- Install pnpm (Package Manager)
You can use
npm
oryarn
as well, but I have usedpnpm
npm install -g pnpm
- Install dependencies
cd client
pnpm install
- Run the development server
pnpm dev
- Open the browser and go to
http://localhost:3000
If you encounter a browser error, it will be resolved upon starting the backend server.
Kindly refresh the page once the backend server is up and running.
- To stop the server, Press
Ctrl + C
in the terminal where the server is running
Make sure you have installed Golang from the above provided link
- Install dependencies
cd server
go mod download
- Run the development server
air
- Open the browser and go to
http://localhost:8000
If you encounter a browser error, it will be resolved upon starting the backend server.
Kindly refresh the page once the backend server is up and running.
- To stop the server, Press
Ctrl + C
in the terminal where the server is running