mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-19 13:00:32 -05:00
chore(i18n,docs): processed translations (#52062)
This commit is contained in:
@@ -205,25 +205,13 @@ The default API keys and environment variables are stored in the file `sample.en
|
||||
|
||||
```console
|
||||
# Create a copy of the "sample.env" and name it ".env".
|
||||
# Populate it with the necessary API keys and secrets:
|
||||
# Populate it with the necessary API keys and secrets
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
The keys in the `.env` file are _not_ required to be changed to run the app locally. You can leave the default values copied over from `sample.env` as-is.
|
||||
|
||||
> [!TIP] Keep in mind if you want to use services like Auth0 or Algolia, you'll have to acquire your own API keys for those services and edit the entries accordingly in the `.env` file.
|
||||
@@ -246,26 +234,10 @@ Before you can run the application locally, you will need to start the MongoDB s
|
||||
|
||||
Start the MongoDB server in a separate terminal:
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
mongod
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
- On Windows, you must specify the full path to the `mongod` binary
|
||||
|
||||
```console
|
||||
"C:\Program Files\MongoDB\Server\3.6\bin\mongod"
|
||||
```
|
||||
|
||||
Make sure to replace `3.6` with the version you have installed
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
> [!TIP] You can avoid having to start MongoDB every time by installing it as a background service. You can [learn more about it in their documentation for your OS](https://docs.mongodb.com/manual/administration/install-community/)
|
||||
|
||||
Next, let's seed the database. In this step, we run the below command that fills the MongoDB server with some initial data sets that are required by services. These include a few schemas, among other things.
|
||||
|
||||
@@ -134,8 +134,6 @@ The default API keys and environment variables are stored in the file `sample.en
|
||||
# Populate it with the necessary API keys and secrets:
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
@@ -148,8 +146,6 @@ cp sample.env .env
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
The keys in the `.env` file are _not_ required to be changed to run the app locally. You can leave the default values copied over from `sample.env` as-is.
|
||||
|
||||
#### Step 2: Install dependencies
|
||||
@@ -380,21 +376,17 @@ Follow these steps:
|
||||
|
||||
3. Make a copy of the `.env` file:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
#### **Windows**
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
4. Install the dependencies for the freeCodeCamp repo:
|
||||
|
||||
@@ -410,21 +402,16 @@ copy sample.env .env
|
||||
|
||||
6. Copy the generated JSON file to the mobile app:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
#### **Windows**
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
7. Change directory to the mobile app:
|
||||
|
||||
@@ -441,7 +428,7 @@ copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
9. Update the test file to use the challenge data JSON file:
|
||||
|
||||
```console
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
```
|
||||
|
||||
10. Generate the challenge files:
|
||||
|
||||
@@ -52,27 +52,13 @@ git clean -ifdX
|
||||
|
||||
If you can't sign in, and instead you see a banner with an error message that it will be reported to freeCodeCamp, please double-check that your local port `3000` is not in use by a different program.
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux/WSL on Windows - From Terminal:**
|
||||
|
||||
#### **From Terminal:**
|
||||
```console
|
||||
netstat -a | grep "3000"
|
||||
|
||||
tcp4 0 0 0.0.0.0:3000 DESKTOP LISTEN
|
||||
```
|
||||
|
||||
#### **On Windows - From Elevated PowerShell:**
|
||||
|
||||
```powershell
|
||||
netstat -ab | Select-String "3000"
|
||||
|
||||
TCP 0.0.0.0:3000 DESKTOP LISTENING
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
---
|
||||
|
||||
## Issues Signing Out while Navigating
|
||||
|
||||
|
||||
@@ -205,25 +205,13 @@ The default API keys and environment variables are stored in the file `sample.en
|
||||
|
||||
```console
|
||||
# Create a copy of the "sample.env" and name it ".env".
|
||||
# Populate it with the necessary API keys and secrets:
|
||||
# Populate it with the necessary API keys and secrets
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
The keys in the `.env` file are _not_ required to be changed to run the app locally. You can leave the default values copied over from `sample.env` as-is.
|
||||
|
||||
> [!TIP] Keep in mind if you want to use services like Auth0 or Algolia, you'll have to acquire your own API keys for those services and edit the entries accordingly in the `.env` file.
|
||||
@@ -246,26 +234,10 @@ Before you can run the application locally, you will need to start the MongoDB s
|
||||
|
||||
Start the MongoDB server in a separate terminal:
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
mongod
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
- On Windows, you must specify the full path to the `mongod` binary
|
||||
|
||||
```console
|
||||
"C:\Program Files\MongoDB\Server\3.6\bin\mongod"
|
||||
```
|
||||
|
||||
Make sure to replace `3.6` with the version you have installed
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
> [!TIP] You can avoid having to start MongoDB every time by installing it as a background service. You can [learn more about it in their documentation for your OS](https://docs.mongodb.com/manual/administration/install-community/)
|
||||
|
||||
Next, let's seed the database. In this step, we run the below command that fills the MongoDB server with some initial data sets that are required by services. These include a few schemas, among other things.
|
||||
|
||||
@@ -134,8 +134,6 @@ The default API keys and environment variables are stored in the file `sample.en
|
||||
# Populate it with the necessary API keys and secrets:
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
@@ -148,8 +146,6 @@ cp sample.env .env
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
The keys in the `.env` file are _not_ required to be changed to run the app locally. You can leave the default values copied over from `sample.env` as-is.
|
||||
|
||||
#### Step 2: Install dependencies
|
||||
@@ -380,21 +376,17 @@ Follow these steps:
|
||||
|
||||
3. Make a copy of the `.env` file:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
#### **Windows**
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
4. Install the dependencies for the freeCodeCamp repo:
|
||||
|
||||
@@ -410,21 +402,16 @@ copy sample.env .env
|
||||
|
||||
6. Copy the generated JSON file to the mobile app:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
#### **Windows**
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
7. Change directory to the mobile app:
|
||||
|
||||
@@ -441,7 +428,7 @@ copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
9. Update the test file to use the challenge data JSON file:
|
||||
|
||||
```console
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
```
|
||||
|
||||
10. Generate the challenge files:
|
||||
|
||||
@@ -52,27 +52,13 @@ git clean -ifdX
|
||||
|
||||
If you can't sign in, and instead you see a banner with an error message that it will be reported to freeCodeCamp, please double-check that your local port `3000` is not in use by a different program.
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux/WSL on Windows - From Terminal:**
|
||||
|
||||
#### **From Terminal:**
|
||||
```console
|
||||
netstat -a | grep "3000"
|
||||
|
||||
tcp4 0 0 0.0.0.0:3000 DESKTOP LISTEN
|
||||
```
|
||||
|
||||
#### **On Windows - From Elevated PowerShell:**
|
||||
|
||||
```powershell
|
||||
netstat -ab | Select-String "3000"
|
||||
|
||||
TCP 0.0.0.0:3000 DESKTOP LISTENING
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
---
|
||||
|
||||
## Issues Signing Out while Navigating
|
||||
|
||||
|
||||
@@ -205,25 +205,13 @@ The default API keys and environment variables are stored in the file `sample.en
|
||||
|
||||
```console
|
||||
# Crear una copia de la "sample.env" y nombrarla ".env".
|
||||
# Completarlo con las claves y secretos de la API necesarios:
|
||||
# Populate it with the necessary API keys and secrets
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
The keys in the `.env` file are _not_ required to be changed to run the app locally. You can leave the default values copied over from `sample.env` as-is.
|
||||
|
||||
> [!TIP] Keep in mind if you want to use services like Auth0 or Algolia, you'll have to acquire your own API keys for those services and edit the entries accordingly in the `.env` file.
|
||||
@@ -246,26 +234,10 @@ Before you can run the application locally, you will need to start the MongoDB s
|
||||
|
||||
Start the MongoDB server in a separate terminal:
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
mongod
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
- On Windows, you must specify the full path to the `mongod` binary
|
||||
|
||||
```console
|
||||
"C:\Program Files\MongoDB\Server\3.6\bin\mongod"
|
||||
```
|
||||
|
||||
Make sure to replace `3.6` with the version you have installed
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
> [!TIP] You can avoid having to start MongoDB every time by installing it as a background service. You can [learn more about it in their documentation for your OS](https://docs.mongodb.com/manual/administration/install-community/)
|
||||
|
||||
Next, let's seed the database. In this step, we run the below command that fills the MongoDB server with some initial data sets that are required by services. These include a few schemas, among other things.
|
||||
|
||||
@@ -134,8 +134,6 @@ Las claves de la API por defecto y las variables de entorno se almacenan en el a
|
||||
# Llenarlo con las keys y secrets de la API necesarios:
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
@@ -148,8 +146,6 @@ cp sample.env .env
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
Las claves dentro del archivo `.env` _no_ requieren ser cambiadas para correr la aplicación de forma local. Puedes dejar los valores por defecto copiados desde `sample.env`.
|
||||
|
||||
#### Paso 2: Instalar dependencias
|
||||
@@ -380,21 +376,17 @@ Sigue estos pasos:
|
||||
|
||||
3. Make a copy of the `.env` file:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
#### **Windows**
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
4. Install the dependencies for the freeCodeCamp repo:
|
||||
|
||||
@@ -410,21 +402,16 @@ copy sample.env .env
|
||||
|
||||
6. Copy the generated JSON file to the mobile app:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
#### **Windows**
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
7. Change directory to the mobile app:
|
||||
|
||||
@@ -441,7 +428,7 @@ copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
9. Update the test file to use the challenge data JSON file:
|
||||
|
||||
```console
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
```
|
||||
|
||||
10. Generate the challenge files:
|
||||
|
||||
@@ -52,27 +52,13 @@ git clean -ifdX
|
||||
|
||||
Si no puedes iniciar sesión, y en cambio ves un banner con un mensaje de error de que será reportado a freeCodeCamp, por favor, verifique otra vez de que tu puerto local `3000` no esté en uso por un programa diferente.
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux/WSL en Windows - Desde la terminal:**
|
||||
|
||||
#### **From Terminal:**
|
||||
```console
|
||||
netstat -a | grep "3000"
|
||||
|
||||
tcp4 0 0 0.0.0.0:3000 DESKTOP LISTEN
|
||||
```
|
||||
|
||||
#### **En Windows - Desde PowerShell con permisos de administrador:**
|
||||
|
||||
```powershell
|
||||
netstat -ab | Select-String "3000"
|
||||
|
||||
TCP 0.0.0.0:3000 DESKTOP LISTENING
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
---
|
||||
|
||||
## Issues Signing Out while Navigating
|
||||
|
||||
|
||||
@@ -205,25 +205,13 @@ The default API keys and environment variables are stored in the file `sample.en
|
||||
|
||||
```console
|
||||
# Erstelle eine Kopie der "sample.env" und nenne sie ".env".
|
||||
# Befülle sie mit den notwendigen API-Schlüsseln und Secrets:
|
||||
# Populate it with the necessary API keys and secrets
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
The keys in the `.env` file are _not_ required to be changed to run the app locally. You can leave the default values copied over from `sample.env` as-is.
|
||||
|
||||
> [!TIP] Keep in mind if you want to use services like Auth0 or Algolia, you'll have to acquire your own API keys for those services and edit the entries accordingly in the `.env` file.
|
||||
@@ -246,26 +234,10 @@ Before you can run the application locally, you will need to start the MongoDB s
|
||||
|
||||
Start the MongoDB server in a separate terminal:
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
mongod
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
- On Windows, you must specify the full path to the `mongod` binary
|
||||
|
||||
```console
|
||||
"C:\Program Files\MongoDB\Server\3.6\bin\mongod"
|
||||
```
|
||||
|
||||
Make sure to replace `3.6` with the version you have installed
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
> [!TIP] You can avoid having to start MongoDB every time by installing it as a background service. You can [learn more about it in their documentation for your OS](https://docs.mongodb.com/manual/administration/install-community/)
|
||||
|
||||
Next, let's seed the database. In this step, we run the below command that fills the MongoDB server with some initial data sets that are required by services. These include a few schemas, among other things.
|
||||
|
||||
@@ -134,8 +134,6 @@ Die Standard-API-Schlüssel und Umgebungsvariablen sind in der Datei `sample.env
|
||||
# Trage die notwendigen API-Schlüssel und Secrets in die Datei ein:
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
@@ -148,8 +146,6 @@ cp sample.env .env
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
Die Schlüssel in der `.env` Datei müssen _nicht_ geändert werden, um die App lokal auszuführen. Du kannst die aus `sample.env` kopierten Standardwerte so belassen, wie sie sind.
|
||||
|
||||
#### Schritt 2: Installieren von Abhängigkeiten
|
||||
@@ -380,21 +376,17 @@ Folge diesen Schritten:
|
||||
|
||||
3. Make a copy of the `.env` file:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
#### **Windows**
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
4. Install the dependencies for the freeCodeCamp repo:
|
||||
|
||||
@@ -410,21 +402,16 @@ copy sample.env .env
|
||||
|
||||
6. Copy the generated JSON file to the mobile app:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
#### **Windows**
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
7. Change directory to the mobile app:
|
||||
|
||||
@@ -441,7 +428,7 @@ copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
9. Update the test file to use the challenge data JSON file:
|
||||
|
||||
```console
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
```
|
||||
|
||||
10. Generate the challenge files:
|
||||
|
||||
@@ -52,27 +52,13 @@ git clean -ifdX
|
||||
|
||||
If you can't sign in, and instead you see a banner with an error message that it will be reported to freeCodeCamp, please double-check that your local port `3000` is not in use by a different program.
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux/WSL on Windows - From Terminal:**
|
||||
|
||||
#### **From Terminal:**
|
||||
```console
|
||||
netstat -a | grep "3000"
|
||||
|
||||
tcp4 0 0 0.0.0.0:3000 DESKTOP LISTEN
|
||||
```
|
||||
|
||||
#### **On Windows - From Elevated PowerShell:**
|
||||
|
||||
```powershell
|
||||
netstat -ab | Select-String "3000"
|
||||
|
||||
TCP 0.0.0.0:3000 DESKTOP LISTENING
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
---
|
||||
|
||||
## Issues Signing Out while Navigating
|
||||
|
||||
|
||||
@@ -205,25 +205,13 @@ The default API keys and environment variables are stored in the file `sample.en
|
||||
|
||||
```console
|
||||
# Creare una copia del "sample.env" e denominarlo ".env".
|
||||
# Popolalo con le chiavi API e i segreti necessari:
|
||||
# Populate it with the necessary API keys and secrets
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
The keys in the `.env` file are _not_ required to be changed to run the app locally. You can leave the default values copied over from `sample.env` as-is.
|
||||
|
||||
> [!TIP] Tieni a mente che se vuoi usare servizi come Auth0 o Algolia, dovrai ottenere delle chiavi API per questi servizi per conto tuo e modificare gli elementi nel file `.env` di conseguenza.
|
||||
@@ -246,26 +234,10 @@ Before you can run the application locally, you will need to start the MongoDB s
|
||||
|
||||
Start the MongoDB server in a separate terminal:
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
mongod
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
- On Windows, you must specify the full path to the `mongod` binary
|
||||
|
||||
```console
|
||||
"C:\Program Files\MongoDB\Server\3.6\bin\mongod"
|
||||
```
|
||||
|
||||
Make sure to replace `3.6` with the version you have installed
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
> [!TIP] Puoi evitare di dover avviare MongoDB ogni volta se lo installi come servizio in background. Puoi [saperne di più nella loro documentazione per il tuo sistema operativo](https://docs.mongodb.com/manual/administration/install-community/)
|
||||
|
||||
Next, let's seed the database. In this step, we run the below command that fills the MongoDB server with some initial data sets that are required by services. These include a few schemas, among other things.
|
||||
|
||||
@@ -134,8 +134,6 @@ Le chiavi API predefinite e le variabili d'ambiente sono memorizzate nel file `s
|
||||
# Popolalo con le chiavi API e i segreti necessari:
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
@@ -148,8 +146,6 @@ cp sample.env .env
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
_Non_ è necessario cambiare le chiavi nel file `.env` per eseguire l'applicazione localmente. Puoi lasciare i valori predefiniti copiati da `sample.env` così come sono.
|
||||
|
||||
#### Step 2: Installare le dipendenze
|
||||
@@ -380,21 +376,17 @@ Segui questi passaggi:
|
||||
|
||||
3. Make a copy of the `.env` file:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
#### **Windows**
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
4. Install the dependencies for the freeCodeCamp repo:
|
||||
|
||||
@@ -410,21 +402,16 @@ copy sample.env .env
|
||||
|
||||
6. Copy the generated JSON file to the mobile app:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
#### **Windows**
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
7. Change directory to the mobile app:
|
||||
|
||||
@@ -441,7 +428,7 @@ copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
9. Update the test file to use the challenge data JSON file:
|
||||
|
||||
```console
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
```
|
||||
|
||||
10. Generate the challenge files:
|
||||
|
||||
@@ -52,27 +52,13 @@ git clean -ifdX
|
||||
|
||||
Se non riesci ad accedere e invece vedi un banner con un messaggio di errore che verrà segnalato a freeCodeCamp, ti preghiamo di controllare che la porta locale `3000` non sia utilizzata da un programma diverso.
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux/WSL su Windows - dal terminale:**
|
||||
|
||||
#### **From Terminal:**
|
||||
```console
|
||||
netstat -a | grep "3000"
|
||||
|
||||
tcp4 0 0 0.0.0.0:3000 DESKTOP LISTEN
|
||||
```
|
||||
|
||||
#### **Su Windows - PowerShell con privilegi elevati:**
|
||||
|
||||
```powershell
|
||||
netstat -ab | Select-String "3000"
|
||||
|
||||
TCP 0.0.0.0:3000 DESKTOP LISTENING
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
---
|
||||
|
||||
## Issues Signing Out while Navigating
|
||||
|
||||
|
||||
@@ -205,25 +205,13 @@ The default API keys and environment variables are stored in the file `sample.en
|
||||
|
||||
```console
|
||||
# "sample.env" のコピーを作成し、".env" という名前を付けます。
|
||||
# 必要な API キーとシークレットを追加します。
|
||||
# Populate it with the necessary API keys and secrets
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
The keys in the `.env` file are _not_ required to be changed to run the app locally. You can leave the default values copied over from `sample.env` as-is.
|
||||
|
||||
> [!TIP] Keep in mind if you want to use services like Auth0 or Algolia, you'll have to acquire your own API keys for those services and edit the entries accordingly in the `.env` file.
|
||||
@@ -246,26 +234,10 @@ Before you can run the application locally, you will need to start the MongoDB s
|
||||
|
||||
Start the MongoDB server in a separate terminal:
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
mongod
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
- On Windows, you must specify the full path to the `mongod` binary
|
||||
|
||||
```console
|
||||
"C:\Program Files\MongoDB\Server\3.6\bin\mongod"
|
||||
```
|
||||
|
||||
Make sure to replace `3.6` with the version you have installed
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
> [!TIP] You can avoid having to start MongoDB every time by installing it as a background service. You can [learn more about it in their documentation for your OS](https://docs.mongodb.com/manual/administration/install-community/)
|
||||
|
||||
Next, let's seed the database. In this step, we run the below command that fills the MongoDB server with some initial data sets that are required by services. These include a few schemas, among other things.
|
||||
|
||||
@@ -134,8 +134,6 @@ The default API keys and environment variables are stored in the file `sample.en
|
||||
# Populate it with the necessary API keys and secrets:
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
@@ -148,8 +146,6 @@ cp sample.env .env
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
The keys in the `.env` file are _not_ required to be changed to run the app locally. You can leave the default values copied over from `sample.env` as-is.
|
||||
|
||||
#### Step 2: Install dependencies
|
||||
@@ -380,21 +376,17 @@ Follow these steps:
|
||||
|
||||
3. Make a copy of the `.env` file:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
#### **Windows**
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
4. Install the dependencies for the freeCodeCamp repo:
|
||||
|
||||
@@ -410,21 +402,16 @@ copy sample.env .env
|
||||
|
||||
6. Copy the generated JSON file to the mobile app:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
#### **Windows**
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
7. Change directory to the mobile app:
|
||||
|
||||
@@ -441,7 +428,7 @@ copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
9. Update the test file to use the challenge data JSON file:
|
||||
|
||||
```console
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
```
|
||||
|
||||
10. Generate the challenge files:
|
||||
|
||||
@@ -52,27 +52,13 @@ git clean -ifdX
|
||||
|
||||
If you can't sign in, and instead you see a banner with an error message that it will be reported to freeCodeCamp, please double-check that your local port `3000` is not in use by a different program.
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux/WSL on Windows - From Terminal:**
|
||||
|
||||
#### **From Terminal:**
|
||||
```console
|
||||
netstat -a | grep "3000"
|
||||
|
||||
tcp4 0 0 0.0.0.0:3000 DESKTOP LISTEN
|
||||
```
|
||||
|
||||
#### **On Windows - From Elevated PowerShell:**
|
||||
|
||||
```powershell
|
||||
netstat -ab | Select-String "3000"
|
||||
|
||||
TCP 0.0.0.0:3000 DESKTOP LISTENING
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
---
|
||||
|
||||
## Issues Signing Out while Navigating
|
||||
|
||||
|
||||
@@ -205,25 +205,13 @@ As chaves de API padrão e variáveis de ambiente são armazenadas no arquivo `s
|
||||
|
||||
```console
|
||||
# Crie uma cópia da "sample.env" e a nomeie como ".env".
|
||||
# Preencher com as chaves e segredos de API necessários:
|
||||
# Preencha-o com as chaves e segredos de API necessários
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
As chaves no arquivo `.env` _não_ precisam ser alteradas para executar o aplicativo localmente. Você pode deixar os valores padrão copiados de `sample.env` como estão.
|
||||
|
||||
> [!TIP] Lembre-se: se quiser usar serviços como Auth0 ou Algolia, você terá que adquirir suas próprias chaves da API para estes serviços e editar as entradas no arquivo `.env`.
|
||||
@@ -246,26 +234,10 @@ Antes de executar a aplicação localmente, você precisará iniciar o serviço
|
||||
|
||||
Inicie o servidor do MongoDB em um terminal separado:
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
mongod
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
- No Windows, você deve especificar o caminho completo para o binário `mongod`
|
||||
|
||||
```console
|
||||
"C:\Arquivos de programa\MongoDB\Server\3.6\bin\mongod"
|
||||
```
|
||||
|
||||
Certifique-se de substituir `3.6` pela versão que você instalou
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
> [!TIP] Você pode evitar ter que executar o MongoDB toda vez instalando-o como um serviço em segundo plano. Você pode [aprender mais sobre isso na documentação para seu OS](https://docs.mongodb.com/manual/administration/install-community/)
|
||||
|
||||
Em seguida, vamos criar o banco de dados. Nesta etapa, executamos o comando abaixo que preenche o servidor MongoDB com alguns conjuntos de dados iniciais que são requeridos pelos serviços. Dentre outras coisas, incluem alguns esquemas.
|
||||
@@ -284,19 +256,19 @@ pnpm run seed:certified-user
|
||||
|
||||
#### Passo 4: Inicie o aplicativo de client do freeCodeCamp e o servidor de API
|
||||
|
||||
Agora você pode iniciar o servidor de API e as aplicações de client.
|
||||
Agora você pode iniciar o servidor de API e os aplicativos do client.
|
||||
|
||||
```console
|
||||
pnpm run develop
|
||||
```
|
||||
|
||||
Este único comando vai disparar todos os serviços, incluindo o servidor API e as aplicações de client disponíveis para você trabalhar.
|
||||
Este único comando vai disparar todos os serviços, incluindo o servidor API e os aplicativos do cliente disponíveis para você trabalhar.
|
||||
|
||||
Uma vez pronto, abra um navegador e acesse <http://localhost:8000>. Se a aplicação carregar, faça o login. Parabéns – está tudo pronto! Agora você tem uma cópia da plataforma do freeCodeCamp de aprendizagem inteira funcionando em sua máquina local.
|
||||
Uma vez pronto, abra um navegador e acesse <http://localhost:8000>. Se o aplicativo carregar, faça o login. Parabéns – está tudo pronto! Agora você tem uma cópia da plataforma do freeCodeCamp de aprendizagem inteira rodando em sua máquina local.
|
||||
|
||||
O servidor de API serve os endpoints em `http://localhost:3000`. O aplicativo Gatsby atende a aplicação de client em `http://localhost:8000`.
|
||||
|
||||
Estando conectando, se você visitar <http://localhost:3000/explorer> poderá ver as APIs disponíveis.
|
||||
Quando estiver conectado, se você visitar <http://localhost:3000/explorer> poderá ver as APIs disponíveis.
|
||||
|
||||
> [!WARNING] Limpar seus cookies ou executar `pnpm run seed:certified-user` desconectará você e será preciso fazer o login novamente.
|
||||
|
||||
|
||||
@@ -134,8 +134,6 @@ As chaves de API padrão e variáveis de ambiente são armazenadas no arquivo `s
|
||||
# Preencha-o com as chaves e segredos de API necessários:
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
@@ -148,8 +146,6 @@ cp sample.env .env
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
As chaves no arquivo `.env` _ não _ precisam ser alteradas para executar o aplicativo localmente. Você pode deixar os valores padrão copiados de `sample.env` como estão.
|
||||
|
||||
#### Passo 2: Instalar as dependências
|
||||
@@ -378,23 +374,19 @@ Siga estes passos:
|
||||
cd freeCodeCamp
|
||||
```
|
||||
|
||||
3. Fazer uma cópia do arquivo `.env`:
|
||||
3. Faça uma cópia do arquivo `.env`:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
#### **Windows**
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
4. Instale as dependências para o repositório do freeCodeCamp:
|
||||
|
||||
@@ -410,21 +402,16 @@ copy sample.env .env
|
||||
|
||||
6. Copie o arquivo JSON gerado para a aplicação para dispositivos móveis:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
#### **Windows**
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
7. Mude o diretório para o diretório da aplicação para dispositivos móveis:
|
||||
|
||||
@@ -441,7 +428,7 @@ copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
9. Atualize o arquivo de testes para que use o arquivo JSON de dados do desafio:
|
||||
|
||||
```console
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
```
|
||||
|
||||
10. Gere os arquivos do desafio:
|
||||
|
||||
@@ -52,27 +52,13 @@ git clean -ifdX
|
||||
|
||||
Se você não conseguir fazer o login e se vir um banner com uma mensagem de erro dizendo que isso será reportado ao freeCodeCamp, verifique novamente se a porta local `3000` não está em uso por um programa diferente.
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux/WSL no Windows - No Terminal:**
|
||||
|
||||
#### **A partir do Terminal:**
|
||||
```console
|
||||
netstat -a | grep "3000"
|
||||
|
||||
tcp4 0 0 0.0.0.0:3000 DESKTOP LISTEN
|
||||
```
|
||||
|
||||
#### **No Windows – no PowerShell com privilégios:**
|
||||
|
||||
```powershell
|
||||
netstat -ab | Select-String "3000"
|
||||
|
||||
TCP 0.0.0.0:3000 DESKTOP LISTENING
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
---
|
||||
|
||||
## Problemas de logout ao navegar
|
||||
|
||||
|
||||
@@ -205,30 +205,18 @@ pnpm -v
|
||||
|
||||
```console
|
||||
# Створіть копію «sample.env» та назвіть її «.env».
|
||||
# Заповніть її необхідними ключами та секретами API:
|
||||
# Populate it with the necessary API keys and secrets
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
Для локального запуску застосунку _необов’язково_ змінювати ключі у файлі `.env`. Ви можете залишити значення за замовчуванням, скопійовані з `sample.env`.
|
||||
|
||||
> [!TIP] Майте на увазі, якщо ви використовуватимете Auth0 або Algolia, вам потрібно отримати власні ключі API для цих служб та відредагувати введені дані у файлі `.env`.
|
||||
|
||||
#### Крок 2: встановіть залежності
|
||||
#### Step 2: Install Dependencies
|
||||
|
||||
У цьому кроці буде встановлено залежності, необхідні для запуску застосунку:
|
||||
|
||||
@@ -236,7 +224,7 @@ copy sample.env .env
|
||||
pnpm install && pnpm run create:shared
|
||||
```
|
||||
|
||||
#### Крок 3: запустіть MongoDB та додайте базу даних
|
||||
#### Step 3: Start MongoDB and Seed the Database
|
||||
|
||||
Перш ніж локально запустити застосунок, потрібно запустити службу MongoDB.
|
||||
|
||||
@@ -246,35 +234,19 @@ pnpm install && pnpm run create:shared
|
||||
|
||||
Запустіть сервер MongoDB в окремому терміналі:
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
mongod
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
- На Windows ви повинні вказати повний шлях до двійкового файлу `mongod`
|
||||
|
||||
```console
|
||||
"C:\Program Files\MongoDB\Server\3.6\bin\mongod"
|
||||
```
|
||||
|
||||
Не забудьте змінити `3.6` на свою версію
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
> [!TIP] Ви можете не запускати MongoDB кожного разу, встановивши його як фонову службу. Для детальнішої інформації див. [документацію MongoDB для вашої ОС](https://docs.mongodb.com/manual/administration/install-community/)
|
||||
|
||||
Тепер додамо базу даних. На цьому кроці ми запускаємо нижченаведену команду, яка заповнює сервер MongoDB деякими початковими наборами даних, потрібних службам. До них належать деякі схеми та інше.
|
||||
Next, let's seed the database. In this step, we run the below command that fills the MongoDB server with some initial data sets that are required by services. These include a few schemas, among other things.
|
||||
|
||||
```console
|
||||
pnpm run seed
|
||||
```
|
||||
|
||||
Ви увійдете як новий користувач без будь-яких завершених сертифікацій за замовчуванням. Запустіть цю команду, якщо потрібні наявні виконані сертифікації:
|
||||
By default, you will be signed in as a new user without any completed certifications. Run the following command if you need to develop with completed certifications:
|
||||
|
||||
```console
|
||||
pnpm run seed:certified-user
|
||||
@@ -282,29 +254,29 @@ pnpm run seed:certified-user
|
||||
|
||||
> [!WARNING] Якщо запустити `pnpm run seed:certified-user`, ви вийдете з облікового запису. Вам доведеться очистити cookies свого браузера та увійти знову.
|
||||
|
||||
#### Крок 4: запустіть клієнтську програму freeCodeCamp та сервер API
|
||||
#### Step 4: Start the freeCodeCamp Client Application and API Server
|
||||
|
||||
Тепер ви можете запустити сервер API та клієнтську програму.
|
||||
You can now start up the API server and the client applications.
|
||||
|
||||
```console
|
||||
pnpm run develop
|
||||
```
|
||||
|
||||
Ця команда запустить всі служби, включно з сервером API та клієнтською програмою, з якими ви можете працювати.
|
||||
This single command will fire up all the services, including the API server and the client applications available for you to work on.
|
||||
|
||||
Після цього відкрийте веббраузер та відвідайте <http://localhost:8000>. Якщо застосунок завантажується, увійдіть в систему. Вітання — все готово! Тепер ви маєте копію повної навчальної платформи freeCodeCamp на своїй локальній машині.
|
||||
Once ready, open a web browser and visit <http://localhost:8000>. If the app loads, sign in. Congratulations – you're all set! You now have a copy of freeCodeCamp's entire learning platform running on your local machine.
|
||||
|
||||
Сервер API обслуговує кінцеві точки на `http://localhost:3000`. Gatsby обслуговує клієнтську програму на `http://localhost:8000`.
|
||||
The API server serves endpoints at `http://localhost:3000`. The Gatsby app serves the client application at `http://localhost:8000`.
|
||||
|
||||
Якщо ви увійшли в систему, відвідайте <http://localhost:3000/explorer> і побачите доступні API.
|
||||
While you are logged in, if you visit <http://localhost:3000/explorer> you should see the available APIs.
|
||||
|
||||
> [!WARNING] Якщо очистити cookies чи запустити `pnpm run seed:certified-user`, ви вийдете з системи та вам доведеться увійти знову.
|
||||
|
||||
Якщо у вас виникли проблеми, див. розділ з [розв’язання проблем розробки](troubleshooting-development-issues.md).
|
||||
If you have issues while installing it, check out the [troubleshooting section](troubleshooting-development-issues.md).
|
||||
|
||||
## Коротко про команди
|
||||
|
||||
Короткий довідник команд, які знадобляться при локальній роботі.
|
||||
A quick reference to the commands that you will need when working locally.
|
||||
|
||||
| команда | опис |
|
||||
| ------------------------------ | --------------------------------------------------------------------------------------------------- |
|
||||
|
||||
@@ -134,8 +134,6 @@ dart --version
|
||||
# Заповніть її необхідними ключами та секретами API:
|
||||
```
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux**
|
||||
|
||||
```console
|
||||
@@ -148,8 +146,6 @@ cp sample.env .env
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
Для локального запуску застосунку _необов’язково_ змінювати ключі у файлі `.env`. Ви можете залишити значення за замовчуванням, скопійовані з `sample.env`.
|
||||
|
||||
#### Крок 2: встановіть залежності
|
||||
@@ -378,91 +374,82 @@ flutter run
|
||||
cd freeCodeCamp
|
||||
```
|
||||
|
||||
3. Зробіть копію файлу `.env`:
|
||||
3. Make a copy of the `.env` file:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
|
||||
```console
|
||||
cp sample.env .env
|
||||
```
|
||||
#### **Windows**
|
||||
|
||||
#### **Windows**
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
```console
|
||||
copy sample.env .env
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
4. Встановіть залежності для репозиторію freeCodeCamp:
|
||||
4. Install the dependencies for the freeCodeCamp repo:
|
||||
|
||||
```console
|
||||
pnpm install && pnpm run create:shared
|
||||
```
|
||||
|
||||
5. Створіть файл JSON з даними завдань:
|
||||
5. Generate the challenge data JSON file:
|
||||
|
||||
```console
|
||||
pnpm run build:curriculum
|
||||
```
|
||||
|
||||
6. Скопіюйте створений файл JSON до мобільного застосунку:
|
||||
6. Copy the generated JSON file to the mobile app:
|
||||
|
||||
<!-- tabs:start -->
|
||||
#### **macOS/Linux**
|
||||
|
||||
#### **macOS/Linux**
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
|
||||
```console
|
||||
cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
|
||||
```
|
||||
#### **Windows**
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
#### **Windows**
|
||||
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
7. Змініть каталог на мобільний застосунок:
|
||||
7. Change directory to the mobile app:
|
||||
|
||||
```console
|
||||
cd ../mobile/mobile-app
|
||||
```
|
||||
|
||||
8. Встановіть залежності для мобільного застосунку:
|
||||
8. Install the dependencies for the mobile app:
|
||||
|
||||
```console
|
||||
flutter pub get
|
||||
```
|
||||
|
||||
9. Оновіть файл тестів, щоб використовувати файл JSON з даними завдань:
|
||||
9. Update the test file to use the challenge data JSON file:
|
||||
|
||||
```console
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
```
|
||||
|
||||
10. Створіть файли завдань:
|
||||
10. Generate the challenge files:
|
||||
|
||||
```console
|
||||
flutter test test/widget_test.dart
|
||||
```
|
||||
|
||||
11. Запустіть локальний сервер для обслуговування файлів завдань за допомогою пакету `serve`:
|
||||
11. Start a local server to serve the challenge files with the help of `serve` package:
|
||||
|
||||
```console
|
||||
npx serve
|
||||
```
|
||||
|
||||
12. В іншому терміналі поверніться до репозиторію freeCodeCamp:
|
||||
12. In a different terminal go back to the freeCodeCamp repo:
|
||||
|
||||
```console
|
||||
cd ../../freeCodeCamp
|
||||
```
|
||||
|
||||
13. Запустіть тести cypress:
|
||||
13. Run the cypress tests:
|
||||
|
||||
```console
|
||||
pnpm cypress run --config retries=1,screenshotOnRunFailure=false,video=false,baseUrl=http://localhost:3000/generated-tests/,specPattern=cypress/e2e/mobile-learn/test-challenges.js -s cypress/e2e/mobile-learn/test-challenges.js -b chrome
|
||||
|
||||
@@ -52,27 +52,13 @@ git clean -ifdX
|
||||
|
||||
Якщо ви не можете увійти, а замість цього бачите банер з повідомленням про помилку, яка буде відправлена до freeCodeCamp, будь ласка, перевірте, чи не використовується ваш локальний порт `3000` іншою програмою.
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
#### **macOS/Linux/WSL на Windows — у терміналі:**
|
||||
|
||||
#### **From Terminal:**
|
||||
```console
|
||||
netstat -a | grep "3000"
|
||||
|
||||
tcp4 0 0 0.0.0.0:3000 DESKTOP LISTEN
|
||||
```
|
||||
|
||||
#### **На Windows — у PowerShell із привілеями:**
|
||||
|
||||
```powershell
|
||||
netstat -ab | Select-String "3000"
|
||||
|
||||
TCP 0.0.0.0:3000 DESKTOP LISTENING
|
||||
```
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
---
|
||||
|
||||
## Проблеми з виходом під час перегляду
|
||||
|
||||
|
||||
Reference in New Issue
Block a user