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.
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:
Enable Google Authentication:
Obtain Google Client ID and Client Secret:
Add Authorized JavaScript origins and Authorized redirect URIs:
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..env.local
file.Create a MongoDB Atlas Account:
Get API Key and Connection URL:
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 for NEXTAUTH_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.