An open API service indexing awesome lists of open source software.

https://github.com/qonus/event-sphere

next.js + mongodb
https://github.com/qonus/event-sphere

Last synced: 4 months ago
JSON representation

next.js + mongodb

Awesome Lists containing this project

README

        

## Description
This is a [Next.js](https://nextjs.org) + [MongoDB](https://www.mongodb.com/products/platform/atlas-database) project made in 24 hours as a submition for offline [BICAP hackathon](https://capedu.kz/bicap) in Binom school, Astana, Kazakhstan.

## Features:
- Search algorithm.
- Creating and seeing events on a map.

## Used Libraries:
- Leaflet
- OpenStreetMap
- Imgur
- Mongoose
- Next-Auth

## Setup .env
Create a ```.env``` file in the main directory, it should include following fields filled with your data:

```
MONGODB_URI = "YOUR_MONGO_URI"

NEXTAUTH_SECRET= "YOUR_AUTH_SECRET"

NEXTAUTH_URL= "http://localhost:3000/"

GOOGLE_CLIENT_ID= "YOUR_GOOGLE_CLIENT_ID"
GOOGLE_CLIENT_SECRET= "YOUR_GOOGLE_CLIENT_SECRET"
```

- `MONGODB_URI` follow [this guide](https://youtu.be/VlJ2v6CcWMM?si=RdlKdwZ_yaskvzUq)

- `NEXTAUTH_SECRET` paste ```npx auth secret```

- `GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET` follow [this article](https://www.balbooa.com/help/gridbox-documentation/integrations/other/google-client-id)

## Running

- Install all required libraries by running
```
npm install
```

- Run the development server:

```
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

- Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.