The Eventure Backend powers the Eventure platform, built using the Strapi headless CMS and hosted on Azure App Services. This repository contains all the backend logic and configurations necessary for managing the project’s content and API. It integrates features like email notifications via Azure Email Service and location services using the Google Maps API.
Follow the steps below to set up the project locally.
Ensure the following tools are installed on your system:
- Node.js (version 14 or later)
- npm (version 6 or later)
- PostgreSQL (version 13 or later)
- Azure Email Service (optional, required for email functionality)
- Google Maps API Key (optional, needed for location services)
-
Clone the Repository
Download the project and move into the project directory:git clone https://github.com/ritwickrajmakhal/eventure-backend.git cd eventure-backend
-
Install Dependencies
Run the following command to install all the necessary dependencies:npm install
-
Database Configuration
Create a new PostgreSQL database locally or on your preferred cloud platform. -
Azure Email Service Setup (Optional)
If you plan to use email notifications, configure an Azure Email Service account and note down the credentials. -
Configure Environment Variables
Create a.env
file in the root directory and add the following environment variables:HOST=0.0.0.0 PORT=1337 URL=http://localhost:1337 APP_KEYS=<your_app_keys> API_TOKEN_SALT=<your_api_token_salt> ADMIN_JWT_SECRET=<your_admin_jwt_secret> TRANSFER_TOKEN_SALT=<your_transfer_token_salt> JWT_SECRET=<your_jwt_secret> # Database DATABASE_CLIENT=postgres DATABASE_NAME=<your_database_name> DATABASE_USERNAME=<your_database_username> DATABASE_PASSWORD=<your_database_password> # Email ENABLE_EMAIL_FROM_AZURE=true AZURE_ENDPOINT=<your_azure_endpoint> EMAIL_SERVICE_ADDRESS=<your_email_service_address> FALLBACK_EMAIL=<your_fallback_email> STORAGE_URL=http://localhost:1337
-
Start the Development Server
Launch the backend by running the following command:npm run develop
The backend should now be running locally at
http://localhost:1337
. -
Access the Admin Panel
To access Strapi’s admin dashboard, open your browser and navigate to:http://localhost:1337/admin
Contributions to the Eventure Backend are made by developers from the community. To view a complete list of contributors, visit our contributors page.
This image is powered by contributors-img.
We welcome contributions from developers interested in improving Eventure! Here’s how you can contribute:
-
Fork the repository.
-
Create a new branch for your feature or fix:
git checkout -b feature/your-feature
-
Commit your changes with a clear message:
git commit -m "Add feature: your-feature"
-
Push to your branch:
git push origin feature/your-feature
-
Open a Pull Request and wait for feedback or approval.
If you have any questions, issues, or suggestions, feel free to open an issue on GitHub or reach out to any of the contributors. We're happy to help!