A buy/sell listing app that lets you sell your sneakers and browse sneakers available for sale. It's like Craiglist and Kijiji, but with a focus on sneakers!
The creation of the app started with using the 'LHL Node Skeleton' files provided by Lighthouse Labs. The app is a collaboration project created by Gloria Cheung, Osama Abdul Rahman, and Raiza De Guzman, as a way to further practice the tech and approaches learned to date at Lighthouse Labs. The project also allowed practice in employing the major steps of software development such as, user stories, wireframes, ERD, Routes, etc.
- ES6 for server-side (
NodeJS
) code NodeJS
Express
- RESTful routes
jQuery
CSS
- Framework:
Bootstrap
- Preprocessor:
SASS
- Custom
CSS
properties
- Framework:
PostgreSQL
andpg
(with promises) for DBMSgit
for version control
- Create a database called
midterm
- Create a role called
labber
- Set password as
labber
- Create the
.env
by using.env.example
as a reference:cp .env.example .env
- Update the .env file with your correct local information
- username:
labber
- password:
labber
- database:
midterm
- Install dependencies:
npm i
- Fix to binaries for sass:
npm rebuild node-sass
- Reset database:
npm run db:reset
- Check the db folder to see what gets created and seeded in the SDB
- Run the server:
npm run local
- Visit
http://localhost:8080/
- Do not edit the
layout.css
file directly, it is auto-generated bylayout.scss
- Use the
npm run db:reset
command each time there is a change to the database schema or seeds.- It runs through each of the files, in order, and executes them against the database.
- Note: you will lose all newly created (test) data each time this is run, since the schema files will tend to
DROP
the tables and recreate them.
Node
10.x or aboveNPM
5.x or abovebody-parser
1.20 or abovechalk
2.4.2 or abovecookie-session
2.x or abovedotenv
2.x or aboveejs
2.6.2 or aboveexpress
4.17 or abovemorgan
1.9 or abovepg
8.5 or abovesass
: 1.35.1 or above