- Make sure you have the latest version of Wasp installed by running
curl -sSL https://get.wasp-lang.dev/installer.sh | sh
in your terminal. - Run
wasp new <project-name> -t todo-ts
to create a new app using this template. - Run
wasp db migrate-dev
- Run
wasp start
. This will install all dependencies and start the client and server for you :) - Go to
localhost:3000
in your browser (your NodeJS server will be running on port3001
) - Install the Wasp extension for VSCode to get the best DX
- Check out the docs for more info on wasp's features and step-by-step guides
This app is deployed using Coolify and Github Container Repository.
It builds the app and Docker images for the server and the client in the Github action. The images are then pushed to the Github Container Registry.
Check the action source code here: https://github.com/wasp-lang/coolify-ghcr/blob/main/.github/workflows/deploy.yml
You'll need to create 2 resources that are deploy by using a Docker image (one for the server and one for the client) with Coolify and a PostgreSQL database.
You'll need to set the following environment variables for the server:
DATABASE_URL
- the connection string to your PostgreSQL databasePORT
- the port on which the server will run (default is 3001)JWT_SECRET
- secret for JWT tokenWASP_SERVER_URL
- the URL of the serverWASP_WEB_CLIENT_URL
- the URL of the client