-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hi there @Pinness. Thank you for adding me as a collaborator to the repository. I have gone through the codebase, and I suggest the following as edits to help us revamp, restructure and format the codebase for a suitable Flask app deployment. Here are the issues you will need to work on:
Issues to fix and revamp of codebase
- Remove the following runtime directories:
env_quiz,__pycache__ - Organize the database files into a folder called
dbormodels. This will structure the file. - Correctly structure the
staticfolder too to have a structure:images,css(contains all CSS files),js(for javascript files) - Update your
requirements.txtfile to contain all the Python packages that a server will need to deploy your application. You can make more research on this. I also suggest you take a look at your Python files to know these packages, check out yourapp.py,database.pyandmodels.py.
Features To Implement
As we look towards deployment, there are a number of best practices that can be followed to improve your MVP, and set it up for a comfortable use by users. Here are a few features I suggest for improvement:
- Properly set up a remote MySQL server, database, and tables as needed. This will allow users to perform database operations once your project is deployed.
- You could improve the UI of your MVP using v0.dev. The key is coming up with effective prompts to improve your existing web page files, but doing so in HTML, CSS and JS. This might require you rewriting the structure of your template files, but I suggest you do a lot of preview and tuning to suit what you want.
- Route protection for each page where the user has to be logged in to view the page.
- Restructuring of pages: Having a
Landing page,Signup page,Login page,Home or Dashboard page, and many more. - You could add a feature where Health facts are being fetched from an API and displayed on your web page.
- Deployment on services like Render.
- Consider choosing a unique name to redeploy your project, that will make your MVP stand out (a unique name is important).
- Ensure that the user must enable JavaScript on his or her web browser before he or she can use the website. This is really essential.
- Handle hashing of user passwords upon sign up, and use password strength requirements to validate strength of user password.
Future Improvements
- Users can customize their profile and information
- They could select what their interests are
- They could get daily health tips or play health quizzes based on their interests.
- AI Integration
I'll also contribute to this project too. I have already forked the repository.
Contribution of Changes
Create a branch called revamp, work on all your changes and push to this branch (do not push to the main branch), and make a pull request to be merged into the main branch. Tag this issue in your pull request, and I'll merge it.
Deadline to implement the issues and features: March 30, 2025
Remember to:
- Create a different branch, work on the changes you've been asked to work on, push to that branch, and create a pull request.
- Make your commit messages more professional.
Have fun building! :)