Hardware and software requirements for Java & Spring framework development, ReactJS and PostgreSQL on Docker
- Windows 10 or Linux or MacOS, 64 bit
- RAM, 8GB required, 16GB preferable
- 128 GB Storage (SSD would be preferrable)
- 4 Core CPU
Download IntelliJ IDEA Ultimate and install. In case you already have it installed and your license has expired, we will provide you a valid license for the duration of the course. In case you prefer using another IDE, that's also fine as the examples do not make use of any IDE specific functionality.
- Java Development Toolkit, download and install the latest LTS version JDK 17. Create then an environmental variable named JAVA_HOME pointing to JDK installation folder.
- Maven, download Maven and follow the instructions. Through Maven dependency management mechanism, we will download every library needed in our projects. Create then an environmental variable named MVN_HOME pointing to Maven's installation folder.
- Add %JAVA_HOME%\bin and %MVN_HOME%\bin to your PATH envrionmental variable.
- Download and install Git Version Control.
- Create a Github account.
Before starting please make sure that you have successfully installed the below dependencies on your development environment.
- The latest LTS version of Node.js - Node.JS is a JavaScript runtime built on Chrome's V8 JavaScript engine.
- npm - is the official Nodejs Package Manager (npm) which allows the management of dependencies and packages. It is automatically installed with nodejs, so you don't have to install it separately.
After installing node please verify that you have set up everything correctly by typing the below commands on your terminal:
node -v
➡️ (any version above or equal 17 is fine),npm -v
➡️ (any version or equal 7 is fine).
Feel free to use any IDE you like. However, VS Code is the recommended IDE since it is light-weight, has a tone of extensions/plugins, and it is an industry standard.
VS Code will be used within class with the following extensions:
- Babel JavaScript
- ESLint
- npm Intellisense
- Path Autocomplete
- Path Intellisense
- Prettier - Code formatter
- Docker
- PostgreSQL
- DBeaver
Docker installation instructions can be seen in this link. If you do not want to study the instructions there, we have summarized the process that you need to follow in the next steps. The process will require administration access during many of the steps described here
- Download Desktop Docker for Windows installer (approximately 540 MB).
- Run the Docker installer. You will need administrator access for this step.
- The installer will give the option of “Use WSL 2 instead of Hyper-V” on a configuration page which it will show you. You MUST select the option of “Use WSL 2…”. Because of this, the installer will install WSL 2, the Windows Subsystem for Linux. You might need administrator access for this step.
- The installer will perform one or more restarts during installation. Once again, after your machine restarts you might or might not be asked to need administrator access one more time for the installation to complete.
- When the installer is complete, you need to add your Windows name to a user group which can control Docker. To do so, start the command prompt tool with administrator rights. The folder/directory that you are in is not important. Simply type in the following command in it, by replacing <user_name> with your Windows user name: net localgroup docker-users <user_name> /add
- When you run the above command, if you happen to get ‘System error 1378’ that ‘The specified account name is already a member of the group', that is ok, you do not need to worry.
The installation is over, and you should now be able to start Docker from the start menu; do so because it is needed for the next installation.
To install PostgreSQL, once you have installed Docker, type in the following command on the command prompt
docker run --name some-postgres -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword -d postgres
You can change POSTGRES_PASSWORD to whatever you want, and it will be the password that you will be using in the later stages of this process.
Download DBeaver Community 21.0.4 from Software on Demand. Install it as usual with all other Software on Demand installations.
Once you start DBeaver, it will ask you to connect to a database; select PostgreSQL.
Depending on your machine configuration, the installer might ask you to download driver files (but if your machine already has them, you will not be asked this). Next the connection setup window will appear. Leave the username as ‘postgres’ and enter the password you used in the Docker installation for PostgreSQL.
Click on ‘Test Connection” to confirm that DBeaver can see the database. Once you get the success message, the setup is complete.