A collaborative web editor built with Node, PostgreSQL, Typescript, KoaJS, PassportJS and WS. This is the backend/API for the Beight application. If you want the full experience, go to https://github.com/ChrisRu/beight-client and install the frontend.
This application is MIT licensed
-
Install Docker Compose
If you don't have docker compose installed, follow the instructions on https://docs.docker.com/compose/install/
-
Configure the environment variables
-
Move or copy the
.env.example
file to just.env
-
Optionally configure the environment variables to your liking
-
-
Build the containers
Start the build by running the following command inside the root folder:
docker-compose build
-
Everything should work now :)
Next up: running the dev server
-
Start the containers
Start the containers by running the following command inside the root folder:
docker-compose up
-
Optionally, install the dev dependencies to get eslint and type support inside your prefered editor
- I recommend using prettier with prettier-eslint for code formatting.
- The editor I recommend is VSCode. It's great for type support.
npm install --only=dev
-
Done :)
You can now edit the files and the server will automatically restart when a file changes. Press CTRL+C to exit.