Web Engineer Setup Guide
Welcome to the Cloud Engineer Setup Guide for m00m world! This guide will help you configure your cloud development environment, set up necessary tools, and get you ready to contribute to our cloud infrastructure.
Prerequisites
- Git: Ensure you have Git installed on your machine. You can download it from git-scm.com.
- We recommend using Git 2.39 or higher.
- 🍎 Mac users can use
brew install gitto install Git via Homebrew.
- Docker: Install Docker Desktop from docker.com to manage containerized applications.
- Node.js: Install Node.js from nodejs.org for running JavaScript applications.
- We recommend using Node Version Manager
- 🍎 Mac users can use
brew install nvmto install Node Version Manager via Homebrew. - After installing NVM, you can install the latest LTS version of Node.js by running:
nvm install --lts
- WebStorm: Download and install WebStorm for cloud development.
Step 1: Clone the Web Project Repository
- Open a terminal or command prompt.
- Ensure you have Git installed and configured. You can check by running
git --version. - Ensure you have proper SSH credentials set up for GitHub on your machine. Follow GitHub's guide if needed.
- Navigate to the directory where you want to clone the repository, e.g.,
~/m00m/.
> git clone git@github.com:m00m-world/m00m-web.git Web
> cd Web
> npm install
- This will clone the Web repository and install the necessary dependencies.
- Open the cloned project in WebStorm.
Step 2: Configure WebStorm
- Create a runtime configuration for the project.
- Open
Run > Edit Configurations. - Click on the
+icon and selectAttach to Node.js Process. - Set the name to
Start Development Server. - Set the host to
localhost - Set the port to
5173 - Set the before launch task to
npm run dev. - Click
OKto save the configuration. - You can now run the development server by selecting the configuration and clicking the
Runbutton.
Step 3: Make & Test Changes
- Make your changes in the codebase.
- Run the development server by selecting the
Start Development Serverconfiguration and clicking theRunbutton. - Open your web browser and navigate to
http://localhost:5173to see your changes in action. - You can also use tools like Postman or cURL to test your API endpoints locally.
Step 4: Deploy [This step will eventually improve]
- To deploy your changes, run:
npm run build - This will build the production-ready version of your web application.
- You can then deploy the built files via FTP. If you have to ask for these credentials, ask someone else to deploy for you.
Conclusion
Congratulations! You have successfully set up your web development environment for m00m world. You can now start contributing to the web project and collaborate with other developers. If you have any questions or need assistance, feel free to reach out to the team.
Further Resources: