https://github.com/bhola-dev58/spangle.edu.np
https://github.com/bhola-dev58/spangle.edu.np
deployed dynamic firebase full-stack-web-development nodejs reactjs tailwindcss
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bhola-dev58/spangle.edu.np
- Owner: bhola-dev58
- Created: 2025-04-25T20:02:34.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-02-08T09:44:00.000Z (4 months ago)
- Last Synced: 2026-05-03T21:36:37.691Z (29 days ago)
- Topics: deployed, dynamic, firebase, full-stack-web-development, nodejs, reactjs, tailwindcss
- Language: JavaScript
- Homepage: https://spangle-edu-1fef0.web.app/
- Size: 28.2 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Spangle Education & Computer Institute
A modern, responsive web application for Spangle Education & Computer Institute built with React, Firebase, and Tailwind CSS.
## ๐ Features
- **Modern UI/UX**: Clean, responsive design with Tailwind CSS
- **Authentication**: Firebase Authentication for secure user management
- **Course Management**: Browse and explore educational courses
- **Contact System**: Integrated contact form with Google Maps
- **Responsive Design**: Mobile-first approach, works on all devices
- **PWA Ready**: Progressive Web App with offline capabilities
## ๐ Prerequisites
Before you begin, ensure you have the following installed:
- Node.js (v14 or higher)
- npm or yarn
- Git
- Firebase account
## ๐ ๏ธ Installation
### 1. Clone the Repository
```bash
git clone https://github.com/bhola-dev58/spangle.edu.np.git
cd spangle.edu.np
```
### 2. Install Dependencies
```bash
cd frontend
npm install
```
### 3. Environment Setup
Create a `.env` file in the `frontend` directory:
```bash
cp .env.example .env
```
Update the `.env` file with your Firebase configuration:
```env
REACT_APP_FIREBASE_API_KEY=your_api_key_here
REACT_APP_FIREBASE_AUTH_DOMAIN=your_project_id.firebaseapp.com
REACT_APP_FIREBASE_PROJECT_ID=your_project_id
REACT_APP_FIREBASE_STORAGE_BUCKET=your_project_id.firebasestorage.app
REACT_APP_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
REACT_APP_FIREBASE_APP_ID=your_app_id
REACT_APP_FIREBASE_MEASUREMENT_ID=your_measurement_id
```
## ๐ Running Locally
### Development Mode
```bash
cd frontend
npm start
```
The application will open at `http://localhost:3000`
### Build for Production
```bash
cd frontend
npm run build
```
This creates an optimized production build in the `frontend/build` directory.
## ๐ Deployment
### Deploy to Firebase Hosting
1. **Install Firebase CLI**:
```bash
npm install -g firebase-tools
```
2. **Login to Firebase**:
```bash
firebase login
```
3. **Initialize Firebase** (if not already done):
```bash
firebase init hosting
```
4. **Build the project**:
```bash
cd frontend
npm run build
```
5. **Deploy**:
```bash
firebase deploy --only hosting
```
### Deploy to Vercel
1. **Install Vercel CLI**:
```bash
npm install -g vercel
```
2. **Deploy**:
```bash
cd frontend
vercel
```
### Deploy to Netlify
1. **Build the project**:
```bash
cd frontend
npm run build
```
2. **Deploy via Netlify CLI**:
```bash
npm install -g netlify-cli
netlify deploy --prod --dir=build
```
Or drag and drop the `build` folder to Netlify's web interface.
## ๐ Project Structure
```
spangle.edu.np/
โโโ frontend/
โ โโโ public/ # Static files
โ โ โโโ favicon.png # Favicon
โ โ โโโ logo-192.png # App icon (192x192)
โ โ โโโ logo-512.png # App icon (512x512)
โ โ โโโ manifest.json # PWA manifest
โ โ โโโ index.html # HTML template
โ โโโ src/
โ โ โโโ assets/ # Images, fonts, etc.
โ โ โโโ components/ # React components
โ โ โโโ context/ # React context (Auth, etc.)
โ โ โโโ firebase/ # Firebase configuration
โ โ โโโ pages/ # Page components
โ โ โโโ services/ # API services
โ โ โโโ utils/ # Utility functions
โ โ โโโ App.js # Main App component
โ โ โโโ index.js # Entry point
โ โ โโโ input.css # Tailwind CSS input
โ โโโ .env.example # Environment variables template
โ โโโ package.json # Dependencies
โ โโโ tailwind.config.js # Tailwind configuration
โโโ firestore.rules # Firestore security rules
โโโ firestore.indexes.json # Firestore indexes
โโโ firebase.json # Firebase configuration
โโโ README.md # This file
```
## ๐ง Configuration
### Tailwind CSS
Tailwind is configured in `tailwind.config.js`. To customize:
```javascript
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {
colors: {
// Add custom colors
}
}
}
}
```
### Firebase
Firebase configuration is in `frontend/src/firebase/config.js`. Ensure your `.env` file has the correct credentials.
## ๐งช Testing
```bash
cd frontend
npm test
```
## ๐ฑ PWA Features
The app includes:
- Offline support
- Add to home screen
- Custom app icons (circular logo)
- Optimized for mobile devices
## ๐ Security
- Environment variables for sensitive data
- Firebase security rules configured
- HTTPS enforced in production
- Input validation and sanitization
## ๐ค Contributing
1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
## ๐ License
This project is private and proprietary to Spangle Education & Computer Institute.
## ๐ฅ Contact
- **Website**: [spangle.edu.np](https://spangle.edu.np)
- **Email**: info@spangle.edu.np
- **Phone**: +977 980-4472777
- **Location**: Siddharthanagar, Rupandehi, Nepal
## ๐ Acknowledgments
- React Team for the amazing framework
- Firebase for backend services
- Tailwind CSS for the utility-first CSS framework
- All contributors and supporters
---
**Made with โค๏ธ by Spangle Education & Computer Institute**