Website Name: The Guardian News
Admin Email: user1@gmail.com
Password: 123456Aa
Live Link: The Guardian News
- Frontend: React, Firebase, React Router
- Backend: Node.js, Express, MongoDB
- Payment Gateway: Stripe
- Additional Libraries:
- Tanstack Query for data fetching
- React-Select for multi-select dropdowns
- Imgbb/Cloudinary for image uploads
- React-Google-Charts for dynamic charts
Packages:
- React-Tooltip: React Tooltip Documentation
- Swiper (Slider): Swiper Documentation
- React-Simple-Typewriter: React Simple Typewriter Documentation
- Meraki UI: Meraki UI Documentation
- Comprehensive Coverage: Extensive coverage on politics, culture, sports, and more.
- Timely Updates: Real-time news updates for breaking news.
- User-Friendly Interface: Clean, intuitive design with easy navigation.
- In-Depth Analysis: In-depth analysis and investigative journalism.
- Interactive Features: Includes polls, comment sections, and multimedia content.
- Mobile Accessibility: Optimized for mobile devices for seamless reading on-the-go.
Follow these steps to set up the project locally:
Ensure you have the following installed:
- Node.js: Download Node.js
- MongoDB: Download MongoDB
- Firebase Account: Create Firebase Account
- Stripe Account: Create Stripe Account
git clone https://github.com/yourusername/the-guirdian-news.git
cd the-guirdian-news
npm install
Create a .env
file in the root directory and add the following environment variables:
# Backend
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
# Firebase
REACT_APP_FIREBASE_API_KEY=your_firebase_api_key
REACT_APP_FIREBASE_AUTH_DOMAIN=your_firebase_auth_domain
REACT_APP_FIREBASE_PROJECT_ID=your_firebase_project_id
REACT_APP_FIREBASE_STORAGE_BUCKET=your_firebase_storage_bucket
REACT_APP_FIREBASE_MESSAGING_SENDER_ID=your_firebase_messaging_sender_id
REACT_APP_FIREBASE_APP_ID=your_firebase_app_id
# Stripe
REACT_APP_STRIPE_PUBLIC_KEY=your_stripe_public_key
STRIPE_SECRET_KEY=your_stripe_secret_key
# Image Uploads
IMGBB_API_KEY=your_imgbb_api_key
CLOUDINARY_URL=your_cloudinary_url
Navigate to the backend
directory and start the server:
cd backend
npm install
npm start
Navigate back to the root directory and start the frontend server:
npm start
Open your browser and go to http://localhost:3000
to access the application.
Use the following credentials to log in to the admin panel:
- Email: user1@gmail.com
- Password: 123456Aa