This application is designed for tracking buses in the city of Zenica, Bosnia and Herzegovina.
Deployment: https://kadjebus.zeforge.ba
Make sure you have the following installed:
-
Install dependencies:
pnpm install
-
Set up the Frontend:
For local development, create a
.env.local
file:NEXT_PUBLIC_API_URL=http://localhost:3001
For production builds, create a
.env.production
file:NEXT_PUBLIC_API_URL=https://production-server-url.com
-
Set up the Backend:
Create a
.env
file in/backend/
and add the following environment variables:SMTP_HOST=your-smtp-host # e.g., smtp.gmail.com SMTP_PORT=your-smtp-port # e.g., 587 for TLS or 465 for SSL SMTP_USER=[email protected] # Your email address SMTP_PASS=your-app-password # Your app password for the email account SENDER_EMAIL=your-sender-email # Email address from which the emails will be sent DEFAULT_RECEIVER_EMAIL=[email protected] # Default recipient email address DEFAULT_RECEIVER_NAME=your-receiver-name # Name of the default recipient
Make sure to replace the placeholders with your actual values.
NOTE If you are using Gmail, you need to enable "Less secure app access" or use an App Password to authenticate.
Once the
.env
file is added, run the server: -
Run the application:
pnpm turbo dev
After setting up the frontend and backend, you can access the application at: