Skip to content

kmal808/storybooks

Repository files navigation

StoryBooks


Deployment

Introduction

A simple CRUD app that allows users to create public and private stories. Features include:

  • Sign up
  • Login with Google
  • Create, edit, and delete stories
  • Mark stories as either public or private
  • View stories via dashboard

Authorization implemented using Google OAuth20


Objective

Create a CRUD app with protected routes and user authorization


Who is this for?

This is a beginner or intermediate application to help understand the simple and slightly complex aspects of building a CRUD app with node


Packages/Dependencies used

  • connect-mongo
  • cross-env
  • dotenv
  • express
  • express-handlebars
  • express-session
  • method-override
  • moment
  • mongoose
  • morgan
  • nodemon
  • passport
  • passport-google-oauth20

To use and modify this app

  • Star and fork this repo
  • Clone your forked repo to your local machine
  • Install dependencies and packages with the npm i command in the terminal
  • Create a .env file and add the following as key: value pairs:
    • PORT: 2121 (can be any port - example: 4200)
    • DB_STRING: your database URI
  • Have fun 😎

Locally deployed and self-hosted live site