jessicasalmon / mmedium

3 stars 0 forks source link

MMedium's Mini-Medium

We are building a simple blog posting web application that allows users to log into their account and input new blogs posts that can be viewed in a newsfeed of most recents posts.

Installation Instructions

User Stories

As a user, I want to be able to:

Goals

Stretch Goals

Wireframe

We mapped out the following wireframes for our site, that included three different pages:

Home

homepage

Submit new post

submit

View Post

viewblog

Architecture

Schema Diagrams

We used the following schema for the database:

user

Column Type Modifiers
id integer not null default
username character varying(100) not null
password character varying(100) not null
avatar_url character varying(100) not null

article

Column Type Modifiers
id integer not null default
user_id integer not null
title character varying(100) not null
body_text character varying(2000) not null
image_url character varying(100) not null

Learnings

const environment = require('env2');

if (process.env.ENV === 'testing') {
  environment('config-test.env');
} else {
  environment('config.env');
}