diff --git a/docs/docs/developer/local-setup.mdx b/docs/docs/developer/local-setup.mdx index ed0478322..711fd837e 100644 --- a/docs/docs/developer/local-setup.mdx +++ b/docs/docs/developer/local-setup.mdx @@ -66,6 +66,7 @@ The default values should work out of the box. Don't forget to update the databa To build Twenty server and seed some data into your database: ``` cd server +nvm install #recommended nvm use #recommended yarn yarn prisma:reset @@ -79,7 +80,8 @@ Twenty server will be running at [http://localhost:3000](http://localhost:3000). **Note:** similarly, we recommend that you use `nvm` to install the right node version. ``` -cd front +cd ../front +nvm install #recommended nvm use #recommended yarn yarn start diff --git a/server/.env.example b/server/.env.example index 03dc004b5..5ce7ffa8f 100644 --- a/server/.env.example +++ b/server/.env.example @@ -1,6 +1,7 @@ DEBUG_MODE=false +DEMO_MODE=true ACCESS_TOKEN_SECRET=secret_jwt -ACCESS_TOKEN_EXPIRES_IN=5m +ACCESS_TOKEN_EXPIRES_IN=30m LOGIN_TOKEN_SECRET=secret_login_token LOGIN_TOKEN_EXPIRES_IN=15m REFRESH_TOKEN_SECRET=secret_refresh_token @@ -9,3 +10,4 @@ PG_DATABASE_URL=postgres://postgres:postgrespassword@localhost:5432/default?conn FRONT_AUTH_CALLBACK_URL=http://localhost:3001/auth/callback STORAGE_TYPE=local STORAGE_LOCAL_PATH=.local-storage +