This project was created as an exercise practicing creating a site using the Model-View-Controller (MVC) directory organization and its respective npm packages.
Project is created with:
- bcrypt: ^5.0.0
- connect-session-sequelize: ^7.0.0
- dotenv: ^8.2.0
- express: ^4.17.1
- express-handlebars: ^4.0.4
- express-session: ^1.17.1
- mysql2: ^2.1.0
- path: ^0.12.7
- sequelize: ^5.21.13
- serve-static: ^1.14.1
To run this project, make sure to install MySQL
install the following locally using npm:
$ cd ../dir
$ npm init
$ npm install --save mysql2
$ npm install --save sequelize
$ npm install dotenv
$ npm install bcrypt
$ npm install express
$ npm install --save path
$ npm install express-handlebars
$ npm install express-session
$ npm install connect-session-sequelize
$ npm install serve-static
Log into mysql
Database art_db;
Source db/schema.sql
Quit out
$ npm start
Alternatively, visit the deployed Heroku site Heroku
- Allows Login or Register new User
- Shows Dashboard that allows creation of new Post
- User can Upvote, Comment, Edit, and Delete Posts
- User can Log out