Skip to content

A web app that allows people to share public stories or to keep them private or unpublished. The users can sign-in using Google OAuth. They can edit the stories posted by them, see the public stories posted by others. In each story, the user can specify whether to allow comments on the story or not.

Notifications You must be signed in to change notification settings

nirajx1d/StoryBooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StoryBooks 📚📝

A web app that allows people to share public stories or to keep them private or unpublished. The users can sign-in using Google OAuth. They can edit the stories posted by them, see the public stories posted by others. In each story, the user can specify whether to allow comments on the story or not.

Demo

https://storybooks-nirajx1d.herokuapp.com/

Tools and Technologies

  • Node.js
  • Express
  • MongoDB

Modules and Libraries used

  • express: a Node.js web application framework that provides a robust set of features for web and mobile applications
  • mongoose: provides a straight-forward, schema-based solution to model your application data
  • passport: an authentication middleware for Node.js
  • passport-google-oauth20: Google (OAuth 2.0) authentication strategy for Passport
  • express-session: simple session middleware for Express
  • cookie-parser: parse HTTP request cookies
  • body-parser: Node.js body parsing middleware
  • express-handlebars: a view engine for Express
  • method-override: override HTTP verbs
  • moment: parse, validate, manipulate, and display dates and times in JavaScript

Running Locally

Requirements: Node.js (Download here)

Once you have Node.js installed, follow these steps:

  1. Create a config/keys_dev.js file and add the following lines:
module.exports = {
  mongoURI: 'YOUR_MONGODB_URL',
  googleClientId: 'YOUR_GOOGLE_CLIENT_ID',
  googleClientSecret: 'YOUR_GOOGLE_SECRET_ID''
};
  1. Cloning and installing dependencies
git clone https://github.com/nirajx1d/StoryBooks.git
cd StoryBooks
npm install
  1. Start the server on port 5000
npm start
  1. Open your browser and visit:
localhost:5000

About

A web app that allows people to share public stories or to keep them private or unpublished. The users can sign-in using Google OAuth. They can edit the stories posted by them, see the public stories posted by others. In each story, the user can specify whether to allow comments on the story or not.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published