2023-12-27 18:14:42 +03: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.
|
2023-12-23 12:08:55 +03:00
|
|
|
|
|
|
|
|
|
|
|
## Getting Started
|
|
|
|
|
2024-01-04 18:39:57 +03:00
|
|
|
We're using Next.JS
|
2024-11-25 19:26:39 +03:00
|
|
|
We're using Postgres for the database. Mandatory for the website to work, even locally.
|
2023-12-23 12:08:55 +03:00
|
|
|
|
2024-11-25 19:26:39 +03:00
|
|
|
1. Copy the .env.example file to .env and fill in the values.
|
2024-11-07 10:50:20 +03:00
|
|
|
|
2024-11-25 19:26:39 +03:00
|
|
|
2. Run the migrations:
|
2024-11-07 10:50:20 +03:00
|
|
|
```bash
|
|
|
|
npx nx run twenty-website:database:migrate
|
|
|
|
```
|
|
|
|
|
2024-11-25 19:26:39 +03:00
|
|
|
3. From the root directory:
|
2023-12-23 12:08:55 +03:00
|
|
|
```bash
|
2024-11-07 10:50:20 +03:00
|
|
|
npx nx run twenty-website:dev
|
2023-12-23 12:08:55 +03:00
|
|
|
```
|
2023-12-27 18:14:42 +03:00
|
|
|
Then open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
2023-12-23 12:08:55 +03:00
|
|
|
|
2023-12-27 18:14:42 +03:00
|
|
|
Or to build in prod:
|
|
|
|
```bash
|
2024-11-07 10:50:20 +03:00
|
|
|
npx nx run twenty-website:build
|
|
|
|
npx nx run twenty-website:start
|
2023-12-27 18:14:42 +03:00
|
|
|
```
|