Petters is a social media application dedicated to pets. Pet owners can congregate on this app and put their pets on their well-deserved pedestal while also exploring the lives of other, equally awesome pets. Petters is set up as a traditional social media structure where users can freely explore other user uploaded content as well as be able to create accounts and share their own content.
Petters uses complex algorithms to allow users to search other active users or to search by category. Additionally, users can also view a featured section where posts are dynamically rendered and displayed according to their specific interactions, which includes the top 5 posts of the day and the top 5 commented posts.
Petters was built using the MVC structure, using sequelize to handle data operations, and the handlebars template engine for the frontend. The app was pushed to heroku services using the Jawsdb database.
- To install application, clone the main project via the HTTP or SSH link on github.
git clone
- Once cloned, open up the project folder in your text editor and run the following command in terminal to install all dependencies.
npm install
Create an '.env' file in the main directory path and include the following data:
DB_NAME='your_database_name'
DB_USER='your_mysql_username'
DB_PW='your_mysql_password'
Once your '.env' has been created with the corresponding data, open up the schema ('db/schema.sql') and update the database label to match with the database you included in your '.env' file.
Before seeding the data, make sure to reset the database by setting 'force: false' to 'true' in the 'server.js' file and type this command in terminal:
npm start
After that, revert back to 'false' and exit the server by typing
control + c
To seed the database with the starter data, type this command in terminal:
npm run seeds
To start the server, type in terminal:
npm start
From there, you are ready to use the application!
- Node.js
- Express.js
- Handlebars template engine
- Bcrypt
- Express sessions
- Sequelize
- Dotenv
- MySQL2
- Heroku
- JavaScript
This project is covered under the MIT License