AccessAid is an information and accessibility guide platform for public and private spaces. It is built using Java 17 and the Spring Boot framework. This project uses Maven as the build automation tool.
- Spring Boot Starter Web
- Spring Boot Starter Data JPA
- PostgreSQL JDBC Driver
- Project Lombok
- SpringDoc OpenAPI UI
- Spring Boot Starter Security
- Spring Boot Starter Validation
- Google Maps Services
- SLF4J Simple
- Spring Boot Starter Mail
- JSON
- Mockito Core
- JJWT API
- JJWT Implementation
- JJWT Jackson
To build the project, ensure that Maven is installed on your system. Then navigate to the project directory and run the following command:
mvn clean install
This project requires several environment variables to connect to the external API services, the database, and the email service. To set up these variables locally, create a file named .env in the root directory of the project. You can find an example .env file in the .env.example file provided.
This project uses PostgreSQL as the database. Database name, username and password should be added in .env file.
This projects uses Google Maps API, and it requires an API Key from Google. To connect to the Google Maps API, obtain an API Key from the Google Cloud Console and add it to the .env file.
Configure the necessary variables to connect to the email service in the .env file. These variables include the SMTP host, port, username, and password. Consult your email service provider's documentation for the required configuration variables and add them to the .env file.
If you don't want to add the environment variables one by one to the run configuration in IntelliJ, you can use a third-party plugin like Env File [8] to specify the location of the .env file. Here are the steps to use Env File:
-
Install the Env File plugin in IntelliJ. You can do this by going to
File > Settings > Plugins, searching for "Env File," and clicking on the "Install" button. -
Create a new
.envfile in your project directory and add your environment variables to it. For example: -
Open the Run/Debug Configuration dialog in IntelliJ and select the configuration you want to modify or create a new one.
-
In the "Environment" tab of the configuration dialog, click on the "..." button next to "Environment variables."
-
In the Environment Variables dialog, click on the "+" button and select "EnvFile."
-
In the EnvFile dialog, enter the path to your
.envfile in the "File path" field. For example, if your.envfile is located in the project root directory, you would enter${workspace}/.env(assuming you're using the default workspace directory). -
Click "OK" to close the EnvFile dialog and "OK" again to close the Environment Variables dialog.
-
You should now see your environment variables listed in the Environment Variables tab of the Run/Debug Configuration dialog.
To run the application, navigate to the project directory and run the following command:
mvn spring-boot:run
The application should start and be available at http://localhost:8080.