Skip to content

Commit

Permalink
Merge pull request #5 from Lorenagubaira/master
Browse files Browse the repository at this point in the history
<onlyfor> & template_url were added
  • Loading branch information
alesanchezr authored Jan 8, 2025
2 parents 1e78710 + 066145c commit dfcd233
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
18 changes: 10 additions & 8 deletions README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,30 @@ Cree un script de Python que genere una excusa cada vez que se ejecute.

¡La idea es generar cada parte de la oración al azar para encontrar excelentes excusas!


<onlyfor saas="false" withBanner="false">

## 🌱 Cómo iniciar este proyecto

No clones este repositorio porque usaremos una plantilla diferente.

1. No clones este repositorio. El primer paso para comenzar a codificar es clonar el [python boilerplate](https://github.com/4GeeksAcademy/flask-rest-hello) en tu compjutador local o con Gitpod.
Recomendamos abrir la el `Python boilerplate`, utilizando una herramienta de aprovisionamiento como [Codespaces](https://4geeks.com/lesson/what-is-github-codespaces) (recomendado) o [Gitpod](https://4geeks.com/lesson/how-to-use-gitpod). Alternativamente, puedes [clonar el repositorio de GitHub](https://github.com/4GeeksAcademy/python-hello) en tu computadora local utilizando el comando `git clone`.

a) Si usas Gitpod (recomendada) puedes clonar el boilerplate [clic aquí](https://github.com/4GeeksAcademy/flask-rest-hello).
Este es el repositorio que necesitas abrir o clonar:

b) Si trabajas localmente, escribe el siguiente comando en tu terminal:
```sh
git clone git clone https://github.com/4GeeksAcademy/flask-rest-hello
$ git clone https://github.com/4GeeksAcademy/python-hello
```

2. Ejecuta la aplicación escribiendo en la terminal:
Luego, ejecuta la aplicación escribiendo en la terminal:

```bash
$ python3 app.py
$ python3 main.py
```

💡 Importante: Recuerda actualizar el `remote` del proyecto con el de tu repositorio usando `git remote set-url origin <your new url>`, y luego guardar tu código en tu nuevo repositorio usando `add`, `commit` y `push`.

</onlyfor>

## Pista

1. Crea un archivo `app.py` con una excusa codificada en una variable.
Expand All @@ -61,7 +64,6 @@ when = ['before the class','right in time','when I finished','during my lunch','
4. Para crear una excusa consistente tienes que concatenar un ítem por cada array en el orden correcto.
5. Imprime la excusa en la consola usando la función `print`


## Tecnologías

Python.
Expand Down
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,30 @@ How can we generate an excuse? How are sentences built?

The idea is to generate each part of the sentence randomly to come up with great excuses!

<onlyfor saas="false" withBanner="false">

## 🌱 How to start this project

Do not clone this repository.
Do not clone this repository because we are going to be using a different template.

1. The first step to start coding is cloning the [python boilerplate](https://github.com/4GeeksAcademy/flask-rest-hello) on your local computer or gitpod.
We recommend opening the `python boilerplate`, using a provisioning tool like [Codespaces](https://4geeks.com/lesson/what-is-github-codespaces) (recommended) or [Gitpod](https://4geeks.com/lesson/how-to-use-gitpod). Alternatively, you can [clone the GitHub repository](https://github.com/4GeeksAcademy/python-hello) on your local computer using the `git clone` command.

a) If using Gitpod (recommended) you can clone the boilerplate by [clicking here](https://github.com/4GeeksAcademy/flask-rest-hello).
This is the repository you need to open or clone:

b) If working locally, type the following command from your command line:
```sh
git clone https://github.com/4GeeksAcademy/flask-rest-hello`.
````
2. Run the app by typing on the terminal:
$ git clone https://github.com/4GeeksAcademy/python-hello
```

Then, Run the app by typing on the terminal:

```bash
$ python3 app.py
$ python3 main.py
```

💡 Important: Remember to create a new repository, update the remote (`git remote set-url origin <your new url>`), and upload the code to your new repository using `add`, `commit`, and `push`.

</onlyfor>

## Hint

1. Create an `app.py` file with one excuse hard-coded in one variable.
Expand Down
1 change: 1 addition & 0 deletions learn.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"status": "draft",
"preview": "https://github.com/breatheco-de/exercise-excuse-generator-python-cli/blob/master/preview.gif?raw=true",
"duration" : 4,
"template_url": "https://github.com/4GeeksAcademy/python-hello",
"difficulty": "beginner",
"description" : "Disneyland for procrastinators. This excuse generator in python takes no more than 20 lines of code and can save you for the rest of your life!",
"solution": "https://github.com/breatheco-de/exercise-excuse-generator-python-cli/tree/solution",
Expand Down

0 comments on commit dfcd233

Please sign in to comment.