Learn Bash and SQL by Building a Bike Rental Shop - Build a Bike Rental Shop

Tell us what’s happening:

I’m starting the Build a Bike Rental Shop challenge with the new course rules(use vscode+docker+git). When I try to complete step 2 and connect to PostgreSQL using:
psql --username=freecodecamp --dbname=postgres

I get this error:
psql: error: could not connect to server: No such file or directory
Is the server running locally and accepting connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0

Challenge Information:

Learn Bash and SQL by Building a Bike Rental Shop - Build a Bike Rental Shop

I used to have the same exact problem. I solved it following the steps here:

When the local environment is correctly set up the prompt doesn’t look like this:
camper@097163d61364:/workspace/project$

It looks like this:
camper: /project$

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.