A web application that allows users to share private and public stories
- Users can login using Google
- Users can create stories and save as drafts.
- Users can publish stories publicly and they can be viewed on the dashboard.
- Users can publish stories privately.
- Users can favorite stories.
- Node
- Express
- Express Handlebars
- Passport for Google Auth
- MongoDB and Mongoose
- Materialize CSS
- Create a directory for the project
mkdir my-project
cd my-project
- Get the files by downloading the .zip file or cloning the repository by:
git clone https://github.com/MuthoniMN/story_books_app.git
- Create a MongoDB database on MongoDB Atlas
- Create a 0AUTH 2.0 Client ID on Google Cloud Console
- Create a .env file for your local environment variables
PORT=
MONGO_URI=
GOOGLE_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
- Run the app
npm run dev
- How to add Google Authentication using Passport
- Express Handlebars
- How to use Express global variables
- How to save images
- Mongoose features - linking 2 models
For more information, you can check out Learning Outcomes
- Adding Social Media Authentication
- Adding Local login
- Social Sharing
- Favorites
- Drafts Section