This project is a MERN (MongoDB, Express.js, React.js, Node.js) application featuring "Continue with Google" functionality.
To set up the project locally, follow these steps:
Make sure you have Node.js and npm (Node Package Manager) installed on your system.
-
Open your terminal and navigate to the server directory of the project using the
cd
command.cd server
-
Create a dotenv file named
.env
inside the server directory. This file will contain sensitive information.touch .env
-
Inside the
.env
file, add the following fields:GOOGLE_CLIENT_ID="your_google_client_id" GOOGLE_CLIENT_SECRET="your_google_client_secret" MONGODB_URI="your_mongodb_uri" SESSION_SECRET="your_session_secret"
-
While in the server directory, install all dependencies using npm.
npm install
-
Open a new terminal window/tab.
-
Navigate to the client directory of the project.
cd client
-
While in the client directory, install all dependencies using npm.
npm install
- Start the server by running the following command in the server directory.
npm install
- Open another terminal window/tab.
- Navigate to the client directory.
cd client
- Start the client application.
npm start
Once the server is up and running, you can use the "Continue with Google" feature in your application.