Skip to content

LaurenDarrimon/community-share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

155 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neighborgood Community Sharing Application

David Chou, Lauren Duker & Scott Everett

License: MIT Language Badges Commits Badge Repo Size Repo Issues

Description

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.

Table of Contents

Link

🔗 Link to application Neighborgood Community Sharing Application

Installation

🔧 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

Usage

To enable the server from the command line:

npm start

Functionality

A gif demonstrating the functionality of the application

Cloudinary

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.

cloudinary uplaod widget

Code Snippet

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;
            };
    }
);

Contributing

✍️ 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:

Questions

❓💌 Reach out to David Chou, Lauren Duker & Scott Everett at [email protected] if you have any questions.

License

The license for this project is: MIT License: MIT

About

Full-stack application where users can post and claim gently used items offered by the community. Uses MVC architectural structure, Bootstrap, Handlebars.js, Sequelize, and express-session.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors