Files
automatisch/packages/docs/pages/contributing/development-setup.md
2022-11-04 23:47:51 +01:00

1.2 KiB

Development Setup

Clone main branch of Automatisch.

git clone git@github.com:automatisch/automatisch.git

Then, install the dependencies.

cd automatisch
yarn install

Backend

Make sure that you have PostgreSQL and Redis installed and running.

Create a .env file in the backend package:

cd packages/backend
cp .env-example .env

Create the development database in the backend folder.

yarn db:create

Run the database migrations in the backend folder.

yarn db:migrate

Create a seed user with user@automatisch.io email and sample password.

yarn db:seed:user

Start the main backend server.

yarn dev

Start the worker server in another terminal tab.

yarn worker

Frontend

Create a .env file in the web package:

cd packages/web
cp .env-example .env

Start the frontend server in another terminal tab. Open http://localhost:3001 with your browser to see the result. Then, use the user@automatisch.io email address and sample password to login.

Docs server

cd packages/docs
yarn dev

You can check the docs server via http://localhost:3002.