Full-stack sharing and upcycling app where neighbors can post gently used items, comment, ask questions, and claim items from other members of their community. App uses MVC architectural structure, Bootstrap, Handlebars.js, Sequelize, and express-session.
🔗 Link to application Neighborgood Community Sharing Application
🔧 If you plan to clone down this project for yourself, you need to install the following (dependencies): bcrypt, connect-session-sequelize, dotenv, express, express-handlebars, express-session, handlebars, mysql2, sequelize.
After you clone down the repository, install dependencies from the root directory.
npm install
Then, move into the db/ directory and create the database in MySQL.
mysql -u root -p
source schema.sql
Next, move back into the root directory and seed your database with the sample data. Or navigate to the seeds directory and add your own seed data, then:
npm run seed
To enable the server from the command line:
npm start
We used Cloudinary for cloud storage and retrieval of user posted item photos.
Cloudinary Upload widget for logged in users to post photos when they post an item.
Client side JavaScript to call the upload widget and retrive unique image URL from the response object.
var photoURL;
var myWidget = cloudinary.createUploadWidget({
cloudName: cloudName,
uploadPreset: uploadPresent,
}, (error, result) => {
if (!error && result && result.event === "success") {
const location_id = document.querySelector("#user-location").getAttribute("data-location");
console.log('Done! Here is the image info: ', result.info);
photoURL = result.info.url;
};
}
);
✍️ David Chou, Lauren Duker & Scott Everett are the authors of this application.
Find additional work here:
Lauren Duker's Github profile.. David Chou's Github profile.. & Scott Everett's Github profile..
Follow these guildines for contributing to this project:
❓💌 Reach out to David Chou, Lauren Duker & Scott Everett at [email protected] if you have any questions.
The license for this project is: MIT

