Pollution Controller
is a web application built with Elixir
and the Phoenix
framework, designed to monitor and manage pollution data from various stations. Leveraging Ecto
, a powerful database wrapper in Elixir
, Pollution Controller
provides robust data storage and retrieval capabilities, ensuring seamless management of environmental metrics. It enables real-time visualization and analysis of pollution data, empowering users to track pollution levels across different locations with ease.
- Elixir
- Phoenix Framework
- Ecto
- Real-time Data: Monitor pollution levels with live updates from connected stations.
- Data Visualization: Visualize data trends and historical records through interactive charts.
- Location-based Insights: Analyze pollution data based on geographic locations.
- User-friendly Interface: Intuitive interface for easy navigation and data exploration.
To run the Pollution Controller
, follow these steps:
-
Install Elixir: Ensure you have Elixir installed, otherwise you can do so at https://elixir-lang.org/install.html.
-
Clone the Repository: To clone the project repository, open your terminal or command prompt and enter the following command:
git clone https://github.com/TommyFurgi/Pollution-Controller.git
-
Open Project: Once the repository has been cloned, navigate into the cloned project directory using the
cd
command in your terminal or command prompt. For example:cd .\Pollution-Controller
-
Install dependencies: Inside the project directory, install the dependencies by running the following command:
mix deps.get
-
Set up the database: Configure your database settings in
config/dev.exs
orconfig/prod.exs
depending on your environment. Ensure the database server is running, then create and migrate your database by running:mix ecto.setup
This command will create the database, run migrations, and seed the database if necessary.
-
Run application: To start the Phoenix server and run the application, use the following command:
mix phx.server
This command compiles and starts the Phoenix application, making it accessible locally at http://localhost:4000. Enjoy!