This pull request improves the local development setup instructions for PostgreSQL on macOS, especially for users installing via Homebrew. It clarifies how to ensure the PostgreSQL server is running and addresses potential issues with the default user role. This pull request solves issue #14637 I personally faced this issues today while trying to setup the project on my M1 Macbook Air. PostgreSQL setup enhancements: * Added instructions to start the PostgreSQL service using Homebrew and verify its status with `brew services list`. * Provided guidance on checking for the existence of the `postgres` role and steps to manually create it if missing, to avoid permission issues during development. --------- Co-authored-by: Charles Bochet <charles@twenty.com>
Twenty-Website
This is used for the marketing website (twenty.com). This is not related in any way to the main app, which you can find in twenty-front and twenty-server.
Getting Started
We're using Next.JS We're using Postgres for the database. Mandatory for the website to work, even locally.
-
Copy the .env.example file to .env and fill in the values.
-
Run the migrations:
npx nx run twenty-website:database:migrate
- From the root directory:
npx nx run twenty-website:dev
Then open http://localhost:3000 with your browser to see the result.
Or to build in prod:
npx nx run twenty-website:build
npx nx run twenty-website:start