OAuth Login Using Google, Github Full Stack Setup
This guide outlines the steps to set up a full-stack application with MongoDB.
This setup includes both the frontend and backend components.
Backend Setup
-
Installation
Install the required dependencies for the backend:
npm install -
Start the Backend Server
Run the backend server:
nodemon app.js
Frontend Setup
-
Installation
npm install -
Start the Frontend Development Server
Run the frontend development server:
npm run dev
Additional Notes
Ensure that the backend server is running before starting the frontend development server to establish communication between them.
Do not forget to fill the keys.js according to your google,github clientID and clientSecret in order to be able to use the project correctly.
Technologies Used
Backend: Node.js, Express.js, MongoDB, Passportjs, JWT,
Frontend: Vue.js, Vite, Typescript