Giter Club home page Giter Club logo

e7ky's Introduction

E7ky.

I'm here to hear you.

Features

  • User authentication using Google OAuth.
  • Create and manage stories with the option to set them as public or private.
  • Public stories section accessible to all users.
  • User-specific dashboard with the ability to edit, delete, and view stories.

Table of Contents

Installation

  1. Clone this repository. git clone [email protected]:MohamedAEmara/E7ky.git
  2. Install dependencies using npm install.
  3. Set up your environment variables, including Google OAuth credentials, and database connection setup.
# config.env (in the root)
# ------------------------
PORT=3000
NODE_ENV=development

# Register to google authenticaion from this URL: https://console.cloud.google.com/
# Then go to "APIs & Services" and follow the instruction
# Replace the XXXXXXXXXXX below with google_client id & secret
GOOGLE_CLIENT_ID=XXXXXXXXXXX
GOOGLE_CLIENT_SECRET=XXXXXXXXXXX
  1. Start the application using npm start.

Usage

  • To create a new story, log in with your Google account.
  • Once logged in, you can create a story and choose to make it public or private.
  • To view public stories, navigate to the "Public Stories" section.
  • Access your dashboard to manage your stories, including editing and deleting.

Database Configuration

Database Setup

Database Connection

  • I use Mongoose to connect to MongoDB.
  • Configure the connection string in the config.env file:
    CONNECTION_STRING=mongodb://localhost:27017/mydatabase
    
    

Views and Templates

Describe how your Handlebars (.hbs) templates are structured and where they are located. Provide examples if necessary.

Main Dependencies

  • express - A fast and widely used web framework for Node.js.
  • mongoose - A powerful MongoDB object modeling tool for Node.js.
  • passport - An essential authentication middleware for Node.js.
  • passport-google-oauth20 - A Passport strategy for Google OAuth 2.0 authentication.
  • mongodb - The official MongoDB driver for Node.js.

These core dependencies are fundamental to the functionality and authentication features of the project. Be sure to install them using npm install before running your project.

Demo

Check out the live demo at E7ky

Author

e7ky's People

Contributors

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