Skip to content

Commit c88f91d

Browse files
committed
fixed the project
1 parent 1e50c53 commit c88f91d

File tree

5 files changed

+6
-104
lines changed

5 files changed

+6
-104
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ DB_USER='gitpod'
33
DB_PASSWORD='postgres'
44
DB_PORT=3306
55
DB_HOST='localhost'
6-
DB_NAME='sample-db'
6+
DB_NAME='sample_db'

INSTRUCTIONS.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $ psql --version
1313
A continuación, revisa el contenido del archivo `./.env` y sigue los pasos que se describen a continuación:
1414

1515
1. Crea un usuario nuevo para conectarte a tu base de datos: `$ psql -U postgres -c \"CREATE USER gitpod;\"`
16-
2. Crea una nueva base de datos dentro del motor de Postgres personalizando y ejecutando el siguiente comando: `$ psql -U postgres -c \"CREATE DATABASE sample-db OWNER gitpod;\"`
16+
2. Crea una nueva base de datos dentro del motor de Postgres personalizando y ejecutando el siguiente comando: `$ psql -U postgres -c \"CREATE DATABASE sample_db OWNER gitpod;\"`
1717
3. Conéctate al motor de Postgres para utilizar tu base de datos, manipular tablas y datos: `$ psql -h localhost -U <username> <db_name>`
1818

1919
> NOTA: Recuerda revisar la información del fichero `./.env` para obtener el `username` y el `db_name`.

INSTRUCTIONS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ $ psql --version
1212
1313
Now, review the contents of the `./.env` file and follow the steps described below:
1414

15-
1. Create a new user to connect to your database: `psql -U postgres -c \"CREATE USER gitpod;\"`
16-
2. Create a new database within the Postgres engine by customizing and executing the following command: `psql -U postgres -c \"CREATE DATABASE sample-db OWNER gitpod;\"`
15+
1. Create a new user to connect to your database: `psql -U postgres -c "CREATE USER gitpod;"`
16+
2. Create a new database within the Postgres engine by customizing and executing the following command: `psql -U postgres -c "CREATE DATABASE sample_db OWNER gitpod;"`
1717
3. Connect to the Postgres engine to use your database, manipulate tables and data: `$ psql -h localhost -U <username> <db_name>`
1818

19-
> NOTE: Remember to check the `./.env` file information to get the `username` and `db_name`.
19+
> NOTE: Remember to check the `./.env` file information to get or set the `username` and `db_name`.
2020
2121
Once you are inside `PSQL` you will be able to create tables, make queries, insert, update, or delete data and much more!
2222

src/Solucion Felix .py

Lines changed: 0 additions & 98 deletions
This file was deleted.

src/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# 1) Connect to the database here using the SQLAlchemy's create_engine function
1010

11-
connection_string = f"postgresql://{os.getenv('gitpod')}:{os.getenv('postgres')}@{os.getenv('localhost')}/{os.getenv('sample-db')}"
11+
connection_string = f"postgresql://{os.getenv('gitpod')}:{os.getenv('postgres')}@{os.getenv('localhost')}/{os.getenv('sample_db')}"
1212
engine = create_engine(connection_string).execution_options(autocommit=True)
1313
engine.connect()
1414

0 commit comments

Comments
 (0)