A noticeboard that lists upcoming and previous society events.
Website
·
Request Feature / Report Bug
Table of Contents
Detailed explaination of the project goes here
To set up a local instance of the application, follow the steps below.
-
Clone the repository
git clone https://github.com/metakgp/events-board.git cd events-board -
Install Frontend Dependencies
cd frontend npm install -
Install Backend Dependencies
cd backend npm install -
Setup environment variables in the Frontend and Backend directories
Create a
.envfile inside/frontendand/backenddirectory, And set up your environment variables. (See Environment Variables section below for more details) -
Set up the database
- In the
/backenddirectory, run the following command to run MongoDB in a Docker container:Alternatively, you can run MongoDB locally if you have it installed.docker compose -f docker-compose.dev.yaml up -d
- In the
-
Set up static file storage
- Create a directory for static files (ideally outside the project directory), and set the absolute path to this directory in the
STATIC_FILE_STORAGE_LOCATIONenvironment variable in/backend/.env(e.g./srv/static). - Create a subdirectory for storing uploaded posters inside the static file storage directory, and set the relative path to this directory in the
UPLOAD_PATHenvironment variable in/backend/.env(e.g.uploads/posters).
- Create a directory for static files (ideally outside the project directory), and set the absolute path to this directory in the
- In the
/frontenddirectory, run the following command to start the frontend:npm run dev
- In the
/backenddirectory, run the following command to start the backend:node index.js
The following environment variables are required to be set in /backend/.env for the application to run:
MONGO_URI: The MongoDB connection string.JWT_SECRET: A secret key used for signing JSON Web Tokens.FRONTEND_URL: The URL of the frontend application.PORT: The port on which the backend server will run.STATIC_FILES_URL: The URL where static files are served.STATIC_FILE_STORAGE_LOCATION: The absolute path where static files are stored.UPLOAD_PATH: The relative path where uploaded files will be stored (relative toSTATIC_FILE_STORAGE_LOCATION).ADMIN_MAIL: Email ID for Admin login.ADMIN_PASSWORD: Password for Admin login.
The following environment variables are required to be set in /frontend/.env for the application to run:
VITE_BACKEND_URL: The URL of the backend API.
The currently active maintainer(s) of this project.
Honoring the original creator(s) and ideator(s) of this project.