{"id":29112699,"url":"https://github.com/ayush00git/yapspace","last_synced_at":"2026-04-12T15:38:15.371Z","repository":{"id":296596574,"uuid":"993858537","full_name":"ayush00git/YapSpace","owner":"ayush00git","description":"A blogging space to share your thoughts....","archived":false,"fork":false,"pushed_at":"2025-06-28T10:52:02.000Z","size":7490,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-28T11:37:47.179Z","etag":null,"topics":["docker","docker-compose","ejs","expressjs","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"https://yapspace.deznov.space","language":"EJS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ayush00git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-31T17:13:33.000Z","updated_at":"2025-06-28T10:52:06.000Z","dependencies_parsed_at":"2025-06-01T07:29:38.966Z","dependency_job_id":"fe55f55d-bf6f-468a-9f91-05dda37e81ba","html_url":"https://github.com/ayush00git/YapSpace","commit_stats":null,"previous_names":["ayush00git/yapspace"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ayush00git/YapSpace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayush00git%2FYapSpace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayush00git%2FYapSpace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayush00git%2FYapSpace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayush00git%2FYapSpace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayush00git","download_url":"https://codeload.github.com/ayush00git/YapSpace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayush00git%2FYapSpace/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262581283,"owners_count":23331908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","ejs","expressjs","mongodb","nodejs"],"created_at":"2025-06-29T11:02:09.399Z","updated_at":"2026-04-12T15:38:15.353Z","avatar_url":"https://github.com/ayush00git.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YapSpace 🗨️\n\n[![Node.js](https://img.shields.io/badge/Node.js-339933?style=for-the-badge\u0026logo=nodedotjs\u0026logoColor=white)](https://nodejs.org/)\n[![Express.js](https://img.shields.io/badge/Express.js-404D59?style=for-the-badge\u0026logo=express)](https://expressjs.com/)\n[![MongoDB](https://img.shields.io/badge/MongoDB-4EA94B?style=for-the-badge\u0026logo=mongodb\u0026logoColor=white)](https://www.mongodb.com/)\n[![Docker](https://img.shields.io/badge/Docker-2496ED?style=for-the-badge\u0026logo=docker\u0026logoColor=white)](https://www.docker.com/)\n\n\u003e **A modern, lightweight blogging platform designed for effortless content creation and sharing.**\n\nYapSpace is a full-stack blogging application that empowers users to create, publish, and share their thoughts with the world. Built with modern web technologies, it provides a clean, intuitive interface backed by a robust and scalable architecture.\n\n## ✨ Features\n\n- 🖊️ **Rich Content Creation** - Create and publish blog posts with an intuitive interface\n- 🖼️ **Media Management** - Upload and store images seamlessly using Cloudinary integration\n- 📄 **Dynamic Rendering** - Server-side rendering with EJS templating for optimal performance\n- 🔐 **Secure Architecture** - Protected content management with API key integration\n- 🐳 **Containerized Deployment** - Fully Dockerized for consistent deployment across environments\n- 📦 **Scalable Storage** - MongoDB integration for fast, flexible data management\n- 🎨 **Responsive Design** - Clean, modern UI built with HTML \u0026 CSS\n- ⚡ **Performance Optimized** - Lightweight and fast loading times\n\n## 🛠️ Technology Stack\n\n### Backend\n- **Runtime**: Node.js\n- **Framework**: Express.js\n- **Database**: MongoDB with Mongoose ODM\n- **Templating**: EJS (Embedded JavaScript)\n\n### Frontend\n- **Markup**: Semantic HTML5\n- **Styling**: Modern CSS3\n- **Architecture**: Server-side rendered pages\n\n### Cloud Services\n- **Media Storage**: Cloudinary API\n- **Database Hosting**: MongoDB Atlas (recommended)\n\n### DevOps\n- **Containerization**: Docker \u0026 Docker Compose\n- **Version Control**: Git\n\n## 📁 Project Structure\n\n```\nYapSpace/\n├── public/             # Static assets (CSS, images, client-side JS)\n├── views/              # EJS templates and layouts\n├── routes/             # Express route definitions\n├── models/             # Mongoose schemas and data models\n├── controllers/        # Business logic and route handlers\n├── middleware/         # Custom middleware functions\n├── config/             # Configuration files\n├── uploads/            # Temporary file storage\n├── .env.example        # Environment variables template\n├── .gitignore          # Git ignore rules\n├── Dockerfile          # Docker container configuration\n├── docker-compose.yml  # Multi-container setup\n├── app.js              # Application entry point\n├── package.json        # Dependencies and scripts\n└── README.md           # Project documentation\n```\n\n## 🚀 Quick Start\n\n### Prerequisites\n\nEnsure you have the following installed:\n- [Node.js](https://nodejs.org/) (v14 or higher)\n- [MongoDB](https://www.mongodb.com/) (local installation or Atlas account)\n- [Git](https://git-scm.com/)\n- [Docker](https://www.docker.com/) (optional, for containerized deployment)\n\n### Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/ayush00git/YapSpace.git\n   cd YapSpace\n   ```\n\n2. **Install dependencies**\n   ```bash\n   npm install\n   ```\n\n3. **Environment Configuration**\n   \n   Create a `.env` file in the root directory\n\n4. **Database Setup**\n   \n   For local MongoDB:\n   ```bash\n   # Start MongoDB service\n   sudo systemctl start mongod  # Linux\n   brew services start mongodb-community  # macOS\n   ```\n\n5. **Start the application**\n   ```bash\n   # Development mode\n   npm run dev\n   \n   # Production mode\n   npm start\n   ```\n\n6. **Access the application**\n   \n   Open your browser and navigate to `http://localhost:3000`\n\n### 🐳 Docker Deployment\n\nFor a containerized setup:\n\n```bash\n# Build and run with Docker Compose\ndocker-compose up --build\n\n# Run in detached mode\ndocker-compose up -d\n\n# Stop the application\ndocker-compose down\n```\n\n## 📖 Usage\n\n### Creating Your First Blog Post\n\n1. Navigate to the homepage\n2. Click on \"Create New Post\"\n3. Fill in the title and content\n4. Upload images using the built-in media uploader\n5. Publish your post to share with the world\n\n### Managing Content\n\n- **Edit Posts**: Click on any post to edit its content\n- **Delete Posts**: Remove posts you no longer want to share\n- **Media Management**: Upload, organize, and manage your images through Cloudinary\n\n## 🔧 Configuration\n\n### Environment Variables\n\n| Variable | Description | Required | Default |\n|----------|-------------|----------|---------|\n| `PORT` | Server port number | No | 3000 |\n| `NODE_ENV` | Environment mode | No | development |\n| `MONGODB_URI` | MongoDB connection string | Yes | - |\n| `CLOUDINARY_CLOUD_NAME` | Cloudinary cloud name | Yes | - |\n| `CLOUDINARY_API_KEY` | Cloudinary API key | Yes | - |\n| `CLOUDINARY_API_SECRET` | Cloudinary API secret | Yes | - |\n| `SESSION_SECRET` | Session encryption key | Yes | - |\n\n### Cloudinary Setup\n\n1. Create a free account at [Cloudinary](https://cloudinary.com/)\n2. Navigate to your dashboard\n3. Copy your Cloud Name, API Key, and API Secret\n4. Add these credentials to your `.env` file\n\n## 🤝 Contributing\n\nWe welcome contributions from the community! Here's how you can help:\n\n### Getting Started\n\n1. **Fork the repository**\n2. **Create a feature branch**\n   ```bash\n   git checkout -b feature/amazing-feature\n   ```\n3. **Make your changes**\n4. **Commit your changes**\n   ```bash\n   git commit -m 'Add amazing feature'\n   ```\n5. **Push to the branch**\n   ```bash\n   git push origin feature/amazing-feature\n   ```\n6. **Open a Pull Request**\n\n### Contribution Guidelines\n\n- Follow the existing code style and conventions\n- Write meaningful commit messages\n- Add tests for new features\n- Update documentation as needed\n- Ensure your code passes all existing tests\n\n### Areas for Contribution\n\n- Bug fixes and improvements\n- New features from the roadmap\n- Documentation enhancements\n- Performance optimizations\n- UI/UX improvements\n- Test coverage expansion\n\n## 🧪 Testing\n\n```bash\n# Run tests\nnpm test\n\n# Run tests in watch mode\nnpm run test:watch\n\n# Generate coverage report\nnpm run test:coverage\n```\n\n## 📝 API Documentation\n\n### Blog Posts\n\n- `GET /` - Homepage with recent posts\n- `GET /posts` - All blog posts\n- `GET /posts/:id` - Specific blog post\n- `POST /posts` - Create new post\n- `PUT /posts/:id` - Update existing post\n- `DELETE /posts/:id` - Delete post\n\n### Media\n\n- `POST /upload` - Upload image to Cloudinary\n- `GET /images` - List uploaded images\n\n## 🔒 Security\n\n- Environment variables for sensitive data\n- Input validation and sanitization\n- Secure session management\n- Image upload restrictions\n\n\n## 🙏 Acknowledgments\n\n- [Express.js](https://expressjs.com/) - Web application framework\n- [MongoDB](https://www.mongodb.com/) - Database solution\n- [Cloudinary](https://cloudinary.com/) - Media management\n- [EJS](https://ejs.co/) - Templating engine\n- All contributors who help improve YapSpace\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayush00git%2Fyapspace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayush00git%2Fyapspace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayush00git%2Fyapspace/lists"}