W
Wasp-lang•2mo ago
Mathew

Stuck at this error

To run PostgreSQL dev database, Wasp needs docker installed and in PATH.
7 Replies
kapa.ai
kapa.ai•2mo ago
Hi @Mathew. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- The error message you're seeing indicates that Wasp is unable to find Docker on your system. Wasp uses Docker to run a PostgreSQL database for your application. Here's how you can resolve this issue: 1. Install Docker: You can download Docker from the official Docker website here (https://www.docker.com/products/docker-desktop/). Follow the instructions provided on the website to install Docker on your system. 2. Verify Docker Installation: Once Docker is installed, you should verify that it's correctly installed and accessible from your command line. You can do this by opening a new terminal and typing docker --version. This should return the version of Docker that's installed on your system. 3. Start Docker: Ensure that the Docker application is running. You can usually do this by searching for Docker in your system's application menu and clicking on it. 4. Start the Wasp Database: Once Docker is running, navigate to your Wasp project directory in the terminal (using the cd command) and run wasp start db. This command tells Wasp to start a PostgreSQL database for your application using Docker. If you're still having trouble, it might be helpful to check out the Wasp documentation (https://wasp-lang.dev/docs/data-model/backends#using-the-dev-database-provided-by-wasp) for more information on how Wasp uses Docker to manage databases. Sources: - Discord support thread: Need help running Wasp app (https://discord.com/channels/686873244791210014/1215223623271321661) - Wasp documentation (https://wasp-lang.dev/docs/data-model/backends#using-the-dev-database-provided-by-wasp) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Mathew, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
miho•2mo ago
The bot is correct 🙂
Mathew
Mathew•2mo ago
Thank you @miho
MEE6
MEE6•2mo ago
Wohooo @Mathew, you just became a Waspeteer level 1!
Mathew
Mathew•2mo ago
I have successfully installed run wasp w the free open saas template i am still struggling to figure out on how to make changes to it. @kapa.ai
kapa.ai
kapa.ai•2mo ago
Let me check the knowledge base for you. One moment! :books: ---------------------- To make changes to the OpenSaaS template in Wasp, you'll need to understand the structure of the project and where the relevant files are located. Here are some steps to guide you: 1. Understand the Project Structure: The OpenSaaS template, like any Wasp project, has a specific structure. The main parts of the project are defined in the main.wasp file. Other important directories include src, which contains the React code for the frontend, and ext, which contains the Node.js code for the backend. 2. Modify the Frontend: If you want to modify the frontend, you'll need to navigate to the src directory. For example, all the Admin Dashboard code is in src/client/admin. You can modify the React components in this directory to change the appearance and functionality of the admin dashboard. 3. Modify the Backend: If you want to modify the backend, you'll need to navigate to the ext directory. This directory contains Node.js code that defines the server-side logic of your application. 4. Use Wasp Commands: After making changes, you can use the wasp start command to start your application and see your changes in action. If you make changes to the database schema, you might need to run wasp db migrate-dev to apply the changes to the database. Remember, Wasp uses React for the frontend and Node.js for the backend, so you'll need some knowledge of these technologies to make significant changes to the template. If you're new to these technologies, there are many resources available online to help you learn. Sources: - Discord support thread: Frontend React Template integration into OpenSaas template > Original post (https://discord.com/channels/686873244791210014/1204153431019753512) - Discord support thread: how to start... > Answers (https://discord.com/channels/686873244791210014/1220792321805647872) - Discord support thread: Help about opensaas. > Answers (https://discord.com/channels/686873244791210014/1206921679608090646) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Mathew, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
miho•2mo ago
@Mathew I'd recommend starting with the Wasp tutorial to understand the basics first. Wasp is very much a code first option and it requires some programming knowledge (React, Node.js, Prisma) https://wasp-lang.dev/docs/tutorial/create
1. Creating a New Project | Wasp
You'll need to have the latest version of Wasp installed locally to follow this tutorial. If you haven't installed it yet, check out the QuickStart guide!