Focus is a web-based application that visualizes elements in 3D, providing an interactive way to learn and explore different elements. Built with Flask for backend and modern web technologies like JavaScript, HTML, and CSS for frontend.
- Python 3.6 or higher
- Pip (Python package installer)
- Node.js and npm (for JavaScript dependencies, if needed)
-
Clone the repository:
git clone https://github.com/alanmaizon/focus.git cd focus
-
Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install required Python packages:
pip install -r requirements.txt
-
Run the Flask app:
flask run
-
Open your web browser and go to
http://127.0.0.1:5000
.
- Enter the symbol of an element in the input field provided.
- The element's properties and a 3D visualization will appear.
- Explore the 3D visualization using mouse controls to rotate, zoom, and pan.
Focus/
├── app.py # Main Flask application
├── elements.py # Module containing elements data
├── static/
│ ├── css/
│ │ └── style.css # Stylesheet for the app
│ ├── js/
│ │ └── script.js # JavaScript for frontend interactivity
├── templates/
│ └── index.html # Main HTML template
└── README.md # Project documentation
- 3D visualization of elements.
- Interactive UI to explore elements' properties.
- Lightweight and easy to use.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Make your changes.
- Commit your changes (
git commit -m 'Add your feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a Pull Request.
Please refer to the Testing and Debugging Report for details.
This project is licensed under the MIT License.