Webmedium is a web-based application that facilitates online consultations between clients and mediums/spiritual advisors. The platform provides a comprehensive system for managing consultations, user profiles, and employee interactions.
- User Authentication and Registration
- Client Profile Management
- Medium/Employee Profile Management
- Consultation Scheduling and Management
- Consultation History Tracking
- Real-time Predictions Generation
- Statistical Analysis and Reporting
- Employee Performance Monitoring
- Backend: Java EE
- Architecture: MVC (Model-View-Controller)
- Build Tool: Maven
- Server: Apache Tomcat
- Packaging: WAR (Web Application Archive)
src/
├── main/
│ ├── java/
│ │ └── web/
│ │ ├── controleur/ # Servlet and Controller classes
│ │ ├── modele/ # Business logic and Action classes
│ │ └── vue/ # Serialization classes
│ └── webapp/ # Web resources
│ ├── META-INF/
│ ├── WEB-INF/
│ └── *.html # Web pages
-
Install Java JDK:
- Download Java JDK 8 or later from Oracle's website or OpenJDK
- Run the installer
- Add Java to your system PATH:
- Open System Properties → Advanced → Environment Variables
- Add JAVA_HOME variable pointing to your JDK installation folder
- Add
%JAVA_HOME%\binto your PATH variable
- Verify installation: Open a new terminal and run
java -version
-
Install Apache Maven:
- Download Maven from Maven's website
- Extract to a folder (e.g.,
C:\Program Files\Apache\maven) - Add Maven to PATH:
- Add M2_HOME variable pointing to Maven folder
- Add
%M2_HOME%\binto PATH
- Verify installation: Run
mvn -version
-
Install Apache Tomcat:
- Download Tomcat 9.x from Tomcat's website
- Extract to a folder (e.g.,
C:\Program Files\Apache\tomcat) - Optional: Configure Tomcat as a service
- Set CATALINA_HOME environment variable to Tomcat installation directory
-
Clone the repository:
git clone https://github.com/Ibra2477/Webmedium-.git cd Webmedium- -
Build the project:
mvn clean install
-
Deploy to Tomcat:
- Copy
target/webmedium-1.0-SNAPSHOT.warto%CATALINA_HOME%\webapps\ - Rename to
webmedium.war(optional)
- Copy
-
Start Tomcat:
- Go to
%CATALINA_HOME%\bin - Run
startup.bat(Windows) orstartup.sh(Linux/Mac) - Wait for deployment to complete (check
%CATALINA_HOME%\logs\catalina.out)
- Go to
-
Access the Application:
- Open your web browser
- Navigate to
http://localhost:8080/webmedium - Default port is 8080 (can be changed in Tomcat's server.xml)
-
Port Conflicts:
- If port 8080 is in use, modify
%CATALINA_HOME%\conf\server.xml - Change the Connector port to an available port
- If port 8080 is in use, modify
-
Database Connection:
- Verify database credentials in
META-INF/context.xml - Ensure database server is running
- Verify database credentials in
-
Common Issues:
- If you see 404 errors, check if the WAR file was deployed correctly
- For 500 errors, check Tomcat's logs in
%CATALINA_HOME%\logs - For build errors, ensure Maven can access all required dependencies
- Access the application through your web browser
- New users can register through the inscription page
- Existing users can log in through the connexion page
- Clients can:
- View available mediums
- Schedule consultations
- View consultation history
- Access their profile
- Employees (Mediums) can:
- View assigned consultations
- Manage consultation sessions
- Access their work history
- View performance statistics
ActionServlet.class: Main controller servletAction.class: Base class for all actions- Various action classes for different functionalities:
ConnexionAction.classConsultationEmployeAction.classContacterMediumAction.class- etc.
accueil.html: Home pageconnexion.html: Login pageinscription.html: Registration pageprofilClient.html: Client profile pageconsultationEmploye.html: Employee consultation pagestatistiques.html: Statistics dashboard- And more...
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
[Add your license information here]
- Ibra2477