Before setting up the project, ensure you have the following installed:
- Node.js (includes npm)
- Golang
- Docker & Docker Compose
Follow these steps to set up and run the project locally:
-
Install Node.js
Download and install Node.js from the official website. This will also install npm, which is required for managing Node.js packages.
-
Install Dependencies
Navigate to the project
/web
directory where thepackage.json
file is located and run:npm install
-
Start Docker Containers
In the project root directory (where your
docker-compose.yml
file is located), run:sudo docker-compose up
-
Setup
.env
fileIn folder
rate_shield
create a file named.env
and add following content to it. You do not need to change these values if you are not working with something related to slack notification. Just copy and paste these 2 lines and it will work fine.SLACK_TOKEN=<Replace With Your Slack Token> SLACK_CHANNEL=<Replace With Your Slack Channel ID>
-
Run the Golang Application
Open a new terminal window, navigate to the directory containing your
main.go
file, and run:go run main.go
-
Start the Frontend
Open another terminal window, navigate to the frontend directory, and run:
npm run dev
-
Access Application
Open browser and go to
http://localhost:5173/