Setting Up the Development Environment
You can set up your development environment in two ways: locally or using Docker.
Local Development Setup
Setting up a local development environment involves configuring your system to run the Node.js application directly.
- Clone the Repository:
git clone [email protected]:iotaledger/gtsc.git
cd gtsc
- Install Dependencies:
npm install
- Environment Configuration:
- Create a
.env.serve
file in the root directory of your project. - Copy environment variables from
.env.local
. For example:
cp .env.local .env.serve
- Run the Application: a. Backend
npm run rest-server:serve
Your backend should now be running on http://localhost:3000. b. Frontend
npm run tlip:serve
Your backend should now be running on http://localhost:4200.
Using Docker for Development
Using Docker simplifies the setup by creating a containerised environment for your application.
- Install Docker: Download and install Docker from docker.com.
- Run docker image
docker-compose up --build
Your application should now be running in a Docker container on http://localhost:3000 for the backend and http://localhost:4200 for the frontend.