Prerequisites
Before you begin, ensure you have one of the following installed on your system:- Python 3.x (for Python’s built-in HTTP server), or
- Node.js (for npx http-server)
Estudo Organizado is built with vanilla JavaScript (no frameworks) and requires only a local web server to run. No build process or package installation is needed.
Browser Requirements
The application works best on modern browsers that support:- Service Workers (for PWA offline functionality)
- IndexedDB (for local data storage)
- ES6+ JavaScript features
Recommended Browsers
- Chrome/Edge 90+
- Firefox 88+
- Safari 14+
Getting Started
Start a Local Web Server
Choose one of the following methods to start a local server:
The Windows batch file (
Abrir_Estudo_Organizado.bat) automatically starts the server and opens your default browser.PWA Installation (Optional)
Once the application is running, you can install it as a Progressive Web App:- Look for the install icon in your browser’s address bar
- Click to install the application natively on your device
- The app will work offline thanks to the Service Worker (
sw.js)
The Service Worker uses a Cache-First strategy for instant loading, even without an internet connection.
Verifying Your Setup
After starting the server, verify everything is working:Check Console
Open browser DevTools (F12) and check the Console tab for:This confirms the Service Worker is registered successfully.
Test IndexedDB
In DevTools, go to Application > Storage > IndexedDB. You should see the database being created when you interact with the app.
Common Issues
Service Worker Not Registering
Service Workers require HTTPS or localhost. If you’re using a different host:- Use
localhostinstead of127.0.0.1 - Or configure HTTPS for your local server
Port Already in Use
If port 8000 is already in use, choose a different port:CORS Issues
If you encounter CORS errors when accessing external resources, ensure your local server is properly configured to serve from thesrc/ directory.
Next Steps
Now that your environment is set up, learn about:- Project Structure - Understand the codebase organization
- Development Workflow - Learn how to make changes and test them