A blog spot where you can write until your hear is content.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
client
config
controllers
db
models
routes
services
.DS_Store
.gitignore
IMG_6005.jpg
IMG_6006.jpg
README.html
README.md
package-lock.json
package.json
server.js

README.md

Blogception

Summary

Blogception is a blogging site where you can write about your latest hobbies, interests or just life.

https://salty-caverns-66914.herokuapp.com/

Getting Started

When you fork and clone it into your terminal. Follow these steps: - npm i in root application - Still in the root folder psql -f db/schema.sql to load up the database. - There is a seed.sql file also, but it is commented out. If you want to use the data uncomment and psql -f db/seed.sql - cd into client and do a yarn install - Once you installed all dependencies npm run dev to get both the client and server running.

User Story

User will be on the landing page of the Blogception. They will be able to see post of users. The home page will have basic information about how to setup a blog along with a blog post.

There will be a login and register button. If they have not registered they will click on the register link and be guided to a register form. If otherwise they will be guided to a login form.

The user will be able to create, edit and delete a blog post. The read functionality will be for all non-logged in and logged in users.

Technologies

  • React
  • Express
  • Postgresql
  • JWT (JSON Web Token)
  • Models & Controllers
  • Authorization

MVP

  • CRUD
  • Auth
  • Reblog
  • Styling

Post MVP

  • Comments
  • Likes

Wireframe

wireframe

ERD

erd

Time Management

Component Priority Estimated Time Time Invetsted Actual Time
Database H 5hrs 6hrs N/A
Models & Controller H 5hrs 3hrs 3hrs
CRUD functionality Back-end H 9hrs 3hrs 3hrs
CRUD functionality Front-end H 15hrs 10hrs 10hrs
Authorization Front-end H 12hrs 8hrs 8hrs
Comments sections Front & Backend H 24hrs 15hrs 15hrs
Styling H 72hrs N/A N/A
Total N/A N/A

Obstacles

  • Unhandled Promise Rejection Warning
    • (node:38798) UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
      • bundle.js.map
        • no-reffer-when-downgrade(default) -This is the user agent's default behavior if no policy is specified. The URL is sent as a referrer when the protocol security level stays the same (HTTP→HTTP, HTTPS→HTTPS), but isn't sent to a less secure destination (HTTPS→HTTP).
  • SOLUTION: I decidede to scrap the LoginForm.js file and retype it over again. That fixed the issue.

Most Recent

  • When trying to get into one blog post, I recieve and error below. So figuring out how to fix it.
    • TypeError: Cannot read property 'map' of undefined.
  • Troubleshooting the issue with mapping comments. Found that the way I am mapping the comments is crashing the Get One blog(id).