Setup Backend

Local setup of the backend

Prerequisites

    1.
    Installed docker & docker-compose

Setup

    1.
    Download the repository:
1
$ git clone https://github.com/DistributedTown/distributed-town-backend.git
Copied!
2. Request .env file from the DistributedTown team (optionally run your own threadDB node) and place it in the main dir

Docker setup

    1.
    Run the docker-compose.yml file by running
1
$ docker-compose up
Copied!

Local setup

    1.
    Install dependencies
1
$ yarn
Copied!
2. Run the project
1
yarn start
Copied!
3. After running it with yarn or docker-compose you should see "DistributedTown running on localhost:3005". Open http://localhost:3005/api/docs and you should be able to see the swagger API documentation
Last modified 7mo ago