Coder Social home page Coder Social logo

ujjawalsol / continue-with-google Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 66 KB

A MERN project, continue with google functionality

JavaScript 96.70% HTML 3.30%
express google-oauth-login google-oauth2 jwt-authentication mern mern-project mongodb nodejs passport-js reactjs secure fullstack-development oauth2

continue-with-google's Introduction

Continue-With-Google

This project is a MERN (MongoDB, Express.js, React.js, Node.js) application featuring "Continue with Google" functionality.

Getting Started

To set up the project locally, follow these steps:

Prerequisites

Make sure you have Node.js and npm (Node Package Manager) installed on your system.

Setting Up Server

  1. Open your terminal and navigate to the server directory of the project using the cd command.

    cd server
  2. Create a dotenv file named .env inside the server directory. This file will contain sensitive information.

    touch .env
  3. 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"

Installing Dependencies

  1. While in the server directory, install all dependencies using npm.

    npm install

Setting Up Client

  1. Open a new terminal window/tab.

  2. Navigate to the client directory of the project.

    cd client

Installing Dependencies

  1. While in the client directory, install all dependencies using npm.

    npm install

Running the Application

  1. Start the server by running the following command in the server directory.
   npm install
  1. Open another terminal window/tab.
  2. Navigate to the client directory.
cd client
  1. Start the client application.
npm start

Usage

Once the server is up and running, you can use the "Continue with Google" feature in your application.

continue-with-google's People

Contributors

ujjawalsol avatar

Stargazers

Harsh chouhan  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.