Skip to content

A group project with Katia Gibson and Zouhrab Haider where we build a coupled app using MongoDB, Express.js, React, and Node.js to give the user a social media experience around books. Users can review books, add to their different collections, and post about their book-related topic of choice.

Notifications You must be signed in to change notification settings

danyeric123/OnlyPages

Repository files navigation

OnlyPages

Table of Contents

OnlyPages 📚

Tagline "I'm a fan of your works"

Our Purpose:

To create a community of readers where they can discuss their favorite books and celebrate their favorite authors

Introduction:

A group project with Katia Gibson and Zouhrab Haider where we build a coupled app using MongoDB, Express.js, React, and Node.js to give the user a social media experience around books. Users can review books, add to their different collections, and post about their book-related topic of choice.

Link to deployed version

Trello Board

Screen Shot 2021-08-08 at 8 44 21 PM

ERD

Screen Shot 2021-08-08 at 9 57 12 PM

Wireframe

Screen Shot 2021-08-11 at 5 16 48 PM

Screenshots:

Screen Shot 2021-08-19 at 4 52 25 PM Screen Shot 2021-08-19 at 4 51 29 PM Screen Shot 2021-08-19 at 4 52 17 PM Screen Shot 2021-08-19 at 4 51 55 PM

Sample Code:

import { Router } from "express";

// import post controller
import * as postsCtrl from "../controller/posts.js";

const router = Router();

export { router };

// make get request for posts
router.get("/", isLoggedIn, postsCtrl.index);

// make a post request for post
router.post("/", isLoggedIn, postsCtrl.create);

// make a get/:id request for post
router.get("/:id", isLoggedIn, postsCtrl.show);

// make a get/:id request for post
router.delete("/:id", isLoggedIn, postsCtrl.delete);

// make a get/:id request for edit
router.get("/:id/edit", isLoggedIn, postsCtrl.edit);

// make a put/:id request for put
router.put("/:id", postsCtrl.update);

// make a post/:id request for post
router.post("/:id", isLoggedIn, postsCtrl.reply);

function isLoggedIn(req, res, next) {
  if (req.isAuthenticated()) return next();
  res.redirect("/auth/google");
}

Technology and Languages Used

Mongoose:

MongoDB:

Express.js:

React:

Node.js:

Google Books API:

download

Tailwind CSS:

JWT:

Ice Box

  1. AAU, you can attend author video book reading sessions
  2. AAU, you can find and register for book events
  3. Librarians will be able to edit author pages
  4. AAU, you can follow authors
  5. AAU, I can access an author's page
  6. AAU, I can see when an author is online
  7. AAU, you can browse books by genre
  8. As an author, I have a special profile page

Credit

About

A group project with Katia Gibson and Zouhrab Haider where we build a coupled app using MongoDB, Express.js, React, and Node.js to give the user a social media experience around books. Users can review books, add to their different collections, and post about their book-related topic of choice.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •