Project Looney will be developed using microservice architecture. Because of this we took the decision to create a repo for each microservice that we will need.
This repo will contain instructions for setting up the local environment of the project as well as general documentation and the files needed for setting up docker containers.
- Valeria Stamenova - v-stamenova
- Ihor Novikov - IGORnvk
- Jessica Dinova - JessicaDinova
- Ana Rivera Faraco - anafaraco01
- Laura Birau - LauraBirau
- Daniel Bartha - DanielBartha
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
In order to get all microservices running, you need Docker installed with enabled integration with WSL (assuming you are on Windows OS).
- Install Ubuntu from the MS Store. Both base versions and specific LTS versions may be used. Follow the installer and create a user.
- Make sure it is WSL2 instead of WSL1 -
wsl -l -v. - Go to Docker Desktop > Settings > Resources > Check Enable integration with my default WSL distro and check Ubuntu.
- Run
sudo apt update && sudo apt upgradeto get your kernel and packages up to the latest version.
In order to get the front end svelte app running, you would need to have npm and node installed on the WSL.
- First, we have to check if there are any versions of npm and node already installed -
npm -v&&node -v. - If the versions are node above 18 and npm above 9, then you can skip the next steps.
- If you do not have node.js or npm on your machine, skip to step 5.
- If their versions are below the mentioned ones, they need to be unistalled -
sudo apt remove nodejs&&sudo apt remove npm. - Install nvm -
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash. - To verify it worked properly, we can check the version
nvm -v. - Run
nvm list-remoteto check all available node versions. - Now, we install the latest one, in this case 20.2.0 -
nvm install v20.2.0. - To verify it worked, we check the versions of node and npm -
node -v&&npm -v.
- Clone this repo onto your WSL
- With VSCode or editor of your choice check out to remote development to the WSL
- Find the repository
- Run
docker compose up -dto get all microservices running - Change the directory to frontend
- Inside frontend run
npm install - After
npm installis executed runnpm run dev
After all steps you should be able to access the frontend from the localhost given by the console and able to access the microservices based on their ports that you can see either within the servers or in the docker desktop.