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.
https://storybooks-nirajx1d.herokuapp.com/
- Node.js
- Express
- MongoDB
- 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
Requirements: Node.js (Download here)
Once you have Node.js installed, follow these steps:
- 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''
};
- Cloning and installing dependencies
git clone https://github.com/nirajx1d/StoryBooks.git
cd StoryBooks
npm install
- Start the server on port 5000
npm start
- Open your browser and visit:
localhost:5000