https://github.com/farsit-007/thinkgreenly
A Next.js-powered community platform for sharing and voting on sustainable ideas. Admins moderate submissions, while members collaborate on eco-friendly solutions.
https://github.com/farsit-007/thinkgreenly
expressjs jwt next shadcn-ui tailwindcss typescript
Last synced: 3 months ago
JSON representation
A Next.js-powered community platform for sharing and voting on sustainable ideas. Admins moderate submissions, while members collaborate on eco-friendly solutions.
- Host: GitHub
- URL: https://github.com/farsit-007/thinkgreenly
- Owner: Farsit-007
- Created: 2025-05-28T18:35:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-05T21:25:50.000Z (about 1 year ago)
- Last Synced: 2025-06-08T19:07:55.143Z (about 1 year ago)
- Topics: expressjs, jwt, next, shadcn-ui, tailwindcss, typescript
- Language: TypeScript
- Homepage: https://think-greenly-one.vercel.app/
- Size: 11 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🌱 ThinkGreenly (Frontend)
[](LICENSE)
[](CONTRIBUTING.md)
# 📌 Overview
A Next.js-powered community platform for sharing and voting on sustainable
ideas. Admins moderate submissions, while members collaborate on eco-friendly
solutions.
## 🌍 Live URL
- [Front-end](https://think-greenly-one.vercel.app)
- [Back-end](https://think-greenly-serverside.vercel.app)
## 📂 Repository Link
- [Front-end](https://github.com/khaledssbd/ThinkGreenly)
- [Back-end](https://github.com/khaledssbd/ThinkGreenly-apis)
## 🛠️ Features
- **User Authentication**: JWT-based login/registration.
- **Idea Management**: Submit, draft, comment and vote on ideas (Reddit-style).
- **Admin Dashboard**: Approve/reject ideas, manage categories.
- **Responsive UI**: Built with Tailwind CSS & Shadcn UI.
- **Payment Integration**: SSLCommerz for "Paid Ideas"
## 🏗️ Tech Stack
#### Frontend
- **Framework**: Next.js (App Router)
- **Styling**: Tailwind CSS
- **Form Handling**: React Hook Form
- **Validation**: Zod
#### Backend
- **Framework**: Express.js
- **Database**: PostgreSQL
- **ORM**: Prisma
- **Payment Method**: SSL Commerz
- **Image hosting**: Multer & Cloudinary
- **Mail Provider**: Nodemailer
- **Validation**: Zod
---
## 🏃♂️ Setup Guide (Frontend)
### Prerequisites
- Node.js ≥18.x
- npm/yarn/pnpm
### Installation
1. Clone the repo:
```bash
git clone https://github.com/khaledssbd/ThinkGreenly.git
cd ThinkGreenly
```
2. Install dependencies:
```bash
npm install
```
3. Create .env file with:
```bash
NEXT_PUBLIC_API_URL="your_backend_url"
```
4. Run the dev server:
```bash
npm run dev
```
## 🏃♂️ Setup Guide (Backend)
### Prerequisites
- Node.js ≥18.x
- npm/yarn/pnpm
### Installation
1. Clone the repo:
```bash
git clone https://github.com/khaledssbd/ThinkGreenly-apis.git
cd ThinkGreenly-apis
```
2. Install dependencies:
```bash
npm install
```
3. Create .env file with:
```bash
NODE_ENV="development"
PORT=5000
DATABASE_URL=""
JWT_SECRET=""
JWT_EXPIRATION="15d"
JWT_REFRESH=""
JWT_REFRESH_EXPIRATION="7d"
RESET_PASSWORD_SECRET=""
RESET_PASSWORD_EXPIRATION="10m"
RESET_PASSWORD_LINK="http://localhost:5000/auth/reset-password"
BCRYPT_SALT_ROUNDS=12
SMTP_HOST="smtp.gmail.com"
SMTP_PORT=587
SMTP_USER=""
SMTP_APP_PASSWORD=""
CLOUDINARY_CLOUD_NAME=""
CLOUDINARY_API_KEY=""
CLOUDINARY_API_SECRET=""
```
4. Run the dev server:
```bash
npm run dev
```

## License
MIT (do whatever you want to do :smile: )