This document provides instructions on setting up the project environment. Please follow the steps carefully to ensure a smooth setup process.
- Windows / Linus or MacOS Operating System
- Git installed on your machine
- SQLite Studio
Ensure you have Node.js version 20.11 LTS or newer installed on your machine. To install the latest Node.js LTS version, follow these steps:
- Visit the Node.js official website.
- Download the Windows installer for the LTS version.
- Run the installer and follow the prompts to complete the installation.
- After installation, open a command prompt or PowerShell and run
node -vto verify the installation. The version should be 20.11 or newer.
Install GIT for your Operating System with default installation
the open GIT Bash or terminal and configure GIT Globals
git config --global user.name "John Doe"
git config --global user.email johndoe@example.comClone the Learn2Code repository from GitHub to your local machine by running the following command in your preferred terminal:
git clone https://github.com/Cyber1an/Learn2Code.gitAlternatively you can download code without using git clone, but then you won't be able to push your changes to git repository for review.
Once code is Cloned or Downloaded > Navigate into the project directory:
cd Learn2CodeInstall the required Node.js packages defined in package.json by running:
npm installCreate a tmp directory within the project to store temporary files:
mkdir tmpReset the project database to its initial state by running:
npm run db:resetCreate and switch to a new branch for your development work. Replace [your_name] with your actual name, removing the brackets:
git checkout -b L2C-01-[your_name]Start the development server to run the project locally:
npm run devYour project should now be up and running. Open your web browser and navigate to the provided local server address (usually http://localhost:3333) to view the project.
If you encounter any issues during the setup, please review the steps to ensure all instructions were followed correctly. For further assistance, contact the project maintainers or consult the project documentation.
