twenty/packages/twenty-website
Félix Malfait 736635a94b
Begin moving to postgres spilo + adding pgvector (#8309)
We will remove the `twenty-postgres` image that was used for local
development and only use `twenty-postgres-pilo` (which we use in prod),
bringing the development environment closer to prod and avoiding having
to maintain 2 images.


Instead of provisioning the super user after the db initialization, we
directly rely on the superuser provided by Spilo for simplicity. We also
introduce a change that tries to create the right database (`default` or
`test`) based on the context.
  

How to test:
```
docker build -t twentycrm/twenty-postgres-spilo:latest -f ./packages/twenty-docker/twenty-postgres-spilo/Dockerfile .
docker images --no-trunc | grep twenty-postgres-spilo
postgres-on-docker:
	docker run \
	--name twenty_pg \
	-e PGUSER_SUPERUSER=twenty \
	-e PGPASSWORD_SUPERUSER=twenty \
	-e ALLOW_NOSSL=true \
	-v twenty_db_data:/home/postgres/pgdata \
	-p 5432:5432 \
	REPLACE_WITH_IMAGE_ID
```
2024-11-15 09:38:30 +01:00
..
public 0.32 changelog (#8461) 2024-11-13 12:57:30 +01:00
src Begin moving to postgres spilo + adding pgvector (#8309) 2024-11-15 09:38:30 +01:00
.env.example Added Algolia Search (#5524) 2024-05-22 12:06:00 +02:00
.eslintrc.js chore: use common eslint config for most packages (#4705) 2024-04-04 12:05:26 +02:00
.gitignore Marketing improvements 3 (#3175) 2023-12-29 11:17:32 +01:00
next.config.js Marketing improvements 3 (#3175) 2023-12-29 11:17:32 +01:00
package.json Fix typo in branch name (#8480) 2024-11-13 19:35:15 +01:00
README.md Update documentation padding on mobile devices (#8318) 2024-11-07 08:50:20 +01:00
tsconfig.json Add proper ORM and postgres support (#3978) 2024-02-14 17:53:50 +01:00

Twenty-Website

This used for the marketing website (twenty.com). This is not related in anyway to the main app, which you can find in twenty-front and twenty-server.

Getting Started

We're using Next.JS

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