This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
to add packages:
yarn add <package-name>
to buuld and run in production
yarn build
yarn start
Database: PostgreSQL.
Authentication: Implement OAuth2.0 or JWT for user authentication.
Security: Hashing algorithms for IDS, HTTPS for data transmission, and role-based access control (RBAC).
Caching: Redis
CI/CD pipelines: GitHub Actions
Monitoring and Logging: Prometheus, Grafana
Storage: AWS S3 Bucket
Email Service: SendGrid
Role-based access control (Admins, Members, etc.).
User Profile Management
- View and edit personal profile information.
- Update profile picture.
- Add, edit, and delete family details.
User Sequence Diagram (User Registration)
-
API Gateway Data Validation Response Success/Fail BackEnd Secure storage of user data.
-
Family and Member Management Manage individual member details within a Unique IDs for families and members (using hashing).
-
Location-Based Rendering Filter and display families based on location (city, state).
Event Management
- View upcoming events.
- Register for events and make payments online. Download event passes with unique IDs.
Notification System
- Push notifications for important updates and reminders.
- Email notifications for event registrations and other alerts.
Search Functionality
- Search for families and members based on various criteria.
- Use Elasticsearch for fast and efficient searches.
- Provide multilingual support.
- Regular backups of data. Hindu Calendar Integration
- Display Hindu calendar with important community events.
Data Privacy and Security
- Ensure sensitive data like Aadhar numbers are hidden. Secure communication using HTTPS.
Access Control and Permissions:
- Fine-grained access control to manage who can view or edit specific information.
- Role-based permissions to ensure data security and privacy.
Community Forums and Polls:
- Create forums for discussions and idea exchanges among members. Conduct polls to gather opinions on community matters and decisions.
User Experience Enhancement
- Implement a step-by-step onboarding process for new users. Provide tooltips, guides, and FAQs to assist users in navigating the app.
- Regularly gather user feedback and make improvements based on their suggestions.
- The UI should be intuitive and easy to navigate.
Security Requirements
- Use OAuth2.0 or JWT for authentication. DataBase Encrypt sensitive data in storage and during transmission.
Scalability Requirements The system should handle up to 10,000 concurrent users.
Efficiently manage increasing data volume.
Integration with Govt. API for Verification (eg. Aadhar etc) Provides fast and efficient search capabilities for family members and events.
Documents:
- WorkFlow Process Family Member Search start Storage AWS-S3 V Documents & Images Backup also User initiates a search from the frontend. API Gateway routes the search request to the Backend.
- Backend queries ElasticSearch for relevant results. Search results are sent back to the frontend and displayed to the user.
Payment Gateway Stripe/ RazorPay/ BillDesk/ etc
Notifications Email/SMS
Event Registration:
- User registers for an event via the frontend.
- API Gateway routes the registration request to the Backend
- Process the request;
- interacts with the Payment Gateway;
- store in DB A confirmation notification is sent to the user via Email/SMS.
Head if gets changed then the privilegs must also be transferred
well well, we are so done with dba,
seeded the whole databse with some data for each like something for each and
every field with some data
npm run seed
-> to seed the database;note it will not delete existing data
npx prisma studio
-> to open database in visual format
Start working on api endpoints like user auth, start with google and phone number well 1 thing to keep in mind, like google translate have all pages switched to hindi and gujrati use next-i18next, a popular library for internationalization in Next.js. install next-i18next, configure to root file, update config files
done, now add profile page and add authentication logic
30.01-> install next-auth