fac25 / week4-alex-abdullah-joe-lisa

https://petstagram-fac.herokuapp.com/
0 stars 1 forks source link

Petsagram

A place to post about your pet :) Petsagram

Roles

Setup

Make sure you have Git and Node (v18) installed.

Clone this repo and cd into the directory

Run npm install to install all the dependencies

Run npm run seed (npm run seedWindow for Windows) to seed the local database.

Run npm run dev (npm run devWindow for Windows) to start the server.

This uses the nodemon library to auto-restart the server when you save changes.

Database

This project uses Sqlite3 through the use of the common library better-sqlite3. Our database uses three tables following this schema:

users

column type constraints
id integer primary key autoincrement
name text
email text unique
hash text
created_at datetime current timestamp

pets

column type constraints
id integer primary key autoincrement
pet_name text
user_id integer references users(id)
pet_type text
image_path TEXT
private integer default 0 check(sharing in 0, 1)

sessions

column type constraints
id text primary key
user_id text references users(id)
expires_at datetime not null
created_at datetime default current timestamp

User Stories

Acceptance Criteria

Communication

Throughout our project we used pair-programming method to write the code and rosolve issues. We met in-person, as well as had online meetings to discuss and work together. We would gather for 5-10 minutes for a quick huddle to discuss the progress so far, and if we faced any issues.

Tools Used

Discord VS Code Live Share extension Github Project Board Software Methodologies During our planning stage, we identified there were functions and components that would be reused in the project. As a result, we decided to include modularization and attempted to follow the DRY principle.