Coder Social home page Coder Social logo

notes_app's Introduction

Notes App

A basic notes app with normal CRUD functionality.

A login and logout system with Google Authentication.

Environment Variables

Because we have used MongoDB, we’ll need a MongoDB SRV URI. You can create a database from this link.

Now, create a .env file to store the MongoDB SRV URI and the base URL, to run this project. The base URL will be your local host server location for now. Here’s my .env file code:

MONGO_URI=mongodb+srv://nemo:[email protected]/myFirstDatabase?retryWrites=true&w=majority
BASE=http://localhost:3000

Remember to change the <password> field in the MongoDB URI with your database password.

Before implementing Google OAuth in our app, we need to first get our API key. To acquire it, go to the Google Developers Console page, and then create a project.

After creating the project click on Credentials , after this, click on Create Credentials, then click on OAuth Client ID. On the Application Type field, select Web Application. Along with that, use the following settings:

screenshot

When you click on Create, you’ll receive your Client ID Key and the Client Secret Key.

In .env file copy the Client ID Key in GOOGLE_CLIENT_ID and Client Secret Key in GOOGLE_CLIENT_SECRET.

Updated .env file code:

MONGO_URI=mongodb+srv://nemo:[email protected]/myFirstDatabase?retryWrites=true&w=majority
BASE=http://localhost:3000
GOOGLE_CLIENT_ID = "paste your Client ID Key here"
GOOGLE_CLIENT_SECRET = "paste your Client Secret Key here"

Run Locally

Clone the project

  git clone https://github.com/ayushjha952/Notes_App.git

Go to the project directory

  cd Notes_App

Install dependencies

  npm install

Start the server

  npm run start

Tech Stack

NodeJS NodeJS ExpressJS ExpressJS MongoDBMongoDB

notes_app's People

Contributors

ayushjha952 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.