├── .gitignore ├── readme.md ├── .DS_Store ├── public ├── .DS_Store ├── images │ ├── .DS_Store │ ├── image.png │ ├── logo.png │ └── uploads │ │ └── .DS_Store └── stylesheets │ └── style.css ├── views ├── error.ejs ├── partials │ ├── header.ejs │ └── footer.ejs ├── login.ejs ├── index.ejs ├── search.ejs ├── edit.ejs ├── profile.ejs ├── upload.ejs ├── userprofile.ejs └── feed.ejs ├── routes ├── story.js ├── multer.js ├── posts.js ├── users.js └── index.js ├── package.json ├── utils └── utils.js ├── app.js └── bin └── www /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | HQ instagram clone -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asynchronousJavascriptor/instaclone/HEAD/.DS_Store -------------------------------------------------------------------------------- /public/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asynchronousJavascriptor/instaclone/HEAD/public/.DS_Store -------------------------------------------------------------------------------- /views/error.ejs: -------------------------------------------------------------------------------- 1 |
<%= error.stack %>4 | -------------------------------------------------------------------------------- /public/images/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asynchronousJavascriptor/instaclone/HEAD/public/images/.DS_Store -------------------------------------------------------------------------------- /public/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asynchronousJavascriptor/instaclone/HEAD/public/images/image.png -------------------------------------------------------------------------------- /public/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asynchronousJavascriptor/instaclone/HEAD/public/images/logo.png -------------------------------------------------------------------------------- /public/images/uploads/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asynchronousJavascriptor/instaclone/HEAD/public/images/uploads/.DS_Store -------------------------------------------------------------------------------- /public/stylesheets/style.css: -------------------------------------------------------------------------------- 1 | .story::-webkit-scrollbar{ 2 | display: none; 3 | } 4 | 5 | a:focus { 6 | outline: none !important; 7 | } -------------------------------------------------------------------------------- /routes/story.js: -------------------------------------------------------------------------------- 1 | const mongoose = require('mongoose'); 2 | 3 | const storySchema = mongoose.Schema({ 4 | user: { 5 | type: mongoose.Schema.Types.ObjectId, 6 | ref: "user" 7 | }, 8 | story: String, 9 | date: { 10 | type: Date, 11 | default: Date.now 12 | } 13 | }) 14 | 15 | 16 | module.exports = mongoose.model("story", storySchema); -------------------------------------------------------------------------------- /views/partials/header.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
5 |
10 | Don't have an account ? Sign Up
11 |
5 |
12 | Already have an account ? Log In
13 | <%= user.bio ?? "You have not set anything yet, (click edit profile to set)" %>
32 |<%= userprofile.bio ?? "You have not set anything yet, (click edit profile to set)" %>
32 |
5 |