Large is a clone of Medium, a blogging platform for video game enthusiasts. Here you are able to make an account and blog about recent games as well as comment on blogs.
This app makes use of the following technologies:
- Express.js
- Pug
- Javascript
- Sequelize
- PostgreSQL
- Clone this repository
git clone git@github.com:masontaylor7/Large.git
- Change directories into Large
- Install dependencies
npm install
- In psql, create a PostgreSQL user with a password and CREATEDB privileges
- Create .env file using the .envexample as a guide.
- Use the newly created user and password for the DB_USERNAME and DB_PASSWORD fields.
- Enter a name for your database in the DB_DATABASE field.
- Create a session secret for the SESSION_SECRET field.
- For DB_HOST, use localhost, and assign a port.
- Use sequelize to create the database.
npx dotenv sequelize db:create
- Run all migrations.
npx dotenv sequelize db:migrate
- Seed the database.
npx dotenv sequelize db:seed:all
- Run
npm start
. - Navigate to localhost in your browser, specifying the port you used in your .env file.
This is the splash page for the app that users see when they navigate to the site. This is the form for creating a post. When users click the comments icon on a post, a comments sidebar appears.