The Ignite Call is a Next.js app that seamlessly integrates with the Google Calendar API, allowing users to easily schedule events within their Google Calendar.
git clone <projectURL>
npm install
Setup a MySQL database locally with Docker - Docker MySQL Documentation
- Obtain the username, password, and port to be used in the
.env
file.
Google APis OAuth2 Documentation
- Go to the Google API Console and sign in.
- Create a project and select it.
- Navigate to
OAuth consent screen
.- Select type
External
and fill in the required fields. Save the changes. - Scopes => Not required (defined at a granular level during the authentication process).
- Tests => Not required.
- Select type
- Go back to
OAuth consent screen
locate "Publishing status" and click on "Publish APP". - Navigate to
Credentials
.- Click on
Create Credentials
>OAuth client ID
>Web application
> continue. - Provide a
name
for the OAuth client ID. - Create an "Authorized JavaScript origins" with the value
http://localhost:3000
. - Create an "Authorized redirect URIs" with the value
http://localhost:3000/api/auth/callback/google
. - Create the client ID.
- Once successful, Download or Save the Credentials to use on
.env
file.
- Click on
Copy the .env.example file to .env and fill the values.
cp .env.example .env
docker run <containername> -d
npx prisma migrate dev
npm run dev
open Localhost in your browser.
Explore and manipulate the database using the Prisma Studio UI.
npx prisma studio
open http://localhost:5555 in your browser.