Important
This project is archived and now read-only. Be aware that if you attempt to run this project, it probably won't work.
Foxenger is a (work in progress) small school project, made with Flask and using some Javascript and Ajax. The main feature of this project is to create a small chatting application where an user can log in and start chatting under some username.
The project isn't meant to be secure (no password & data encryption, etc) or efficient in terms of performance as it's not the first goal of the project. With this small project (as a Python dev), I would like to start learning some javascript and improve my skills.
Here is basically how the application work:
- No (real) database. Everything is storred for now in a json file, which is enough for this project.
- Ajax requests. Messages are fetched every few seconds with an Ajax request to the Flask web server.
- Single page project. Elements in page are being updated with Javascript. Everything happens in the same page.
For now, no. However, this school project is still ongoing and it's really fun to work on it! I will try to push some updates whenever I have time. Here is a list of a few things that I would like to do:
- Use a real database (possibly MongoDB) instead of json files
- Move helper functions from core and import them as module
- Remove duplicate Flask routes and improve their names
- Improve the UI design by using Tailwind CSS
- Replace remaining HTTP requests with Ajax
- Possibly use websockets instead of checking with setInterval()
Not yet! The project itself has multiple security vulnerabilities and publishing a live version may create some issues. Once the app is ready for being launched in production mode, it will be publicly accessible and more information will be added here.