Welcome to Sigma Events, an easy-to-use website for organizing and participating in events hassle-free. Check it out here.
This project simplifies event planning and participation with an intuitive and user-friendly interface, built using Next.js, Tailwind CSS, and MongoDB.
- Clear event details presented in a structured manner.
- One-time information entry to avoid repetitive form filling.
- Instant event notifications for timely updates.
- Insights and feedback for event management and improvement.
- Privacy-focused approach without sharing personal information publicly.
- Easy access to past and upcoming events for efficient planning.
To set up Sigma Events locally on your machine, follow these steps:
git clone https://github.com/abhideepkumar/sigmaevents
cd sigmaevents
Run the following command to install necessary dependencies:
npm install
Rename a example.env.local
file to .env.local
in the project's root directory and change the required environment variables.
-
Create a Google Cloud Platform Project:
- Go to Google Cloud Console and create a project for Sigma Events.
-
Enable Google Authentication:
- In the Google Cloud Console, navigate to the created project and enable Google authentication for your project.
-
Obtain Google Client ID and Client Secret:
- Within the Google Cloud Console, retrieve the Client ID and Client Secret for the project.
-
Add Authorized JavaScript origins and Authorized redirect URIs:
- In the Google Cloud Console, go to the Credentials section and select your project.
- Click on the edit button next to your Client ID and scroll down to the Authorized JavaScript origins and Authorized redirect URIs sections.
- Add the URL where your application will run locally (
http://localhost:3000/
for Authorized JavaScript origins) and (http://localhost:3000/api/auth/callback/google
for Authorized redirect URIs). This will allow Google to recognize your application and redirect the user back to your website after authentication. - Save the changes and copy the Client ID and Client Secret to your
.env.local
file.
-
Create a MongoDB Atlas Account:
- Sign up at MongoDB Atlas and create a new cluster for Sigma Events.
-
Get API Key and Connection URL:
- After creating the cluster, obtain the API Key and Connection URL from Data API section.
-
NEXTAUTH_SECRET
: This should be a 32-digit random hexadecimal code, used for session encryption and signing. Generate a secure secret key from numbergenerator.org and paste it as the value forNEXTAUTH_SECRET
. -
NEXTAUTH_URL
: Set this to the URL where your application will run locally (http://localhost:3000/
by default). This URL is used during the authentication process. Also, add this url in your Google Console Authentication so that Google login will allow this URL. -
ADMIN_NEXTAUTH_URL
:This URL is used during the authentication process for admins.
Update the .env.local
file with the obtained credentials:
If you still find it challenging, you can watch some YouTube videos for guidance.
Run the following command to start the Sigma Events project locally:
npm run dev
Access the website via http://localhost:3000/
in your browser.
Contributions are welcome! Submit issues or pull requests for improvements or bug fixes.
This project is licensed under the MIT License.