42 lines
		
	
	
		
			824 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			824 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
title: "compiling"
 | 
						|
date: 2025-02-20
 | 
						|
draft: false
 | 
						|
description: "How to compile the project"
 | 
						|
tags: ["clone", "compile"]
 | 
						|
---
 | 
						|
# Preconditons:
 | 
						|
* NPM is installed
 | 
						|
* rustup is installed
 | 
						|
* espup is installed
 | 
						|
 | 
						|
 | 
						|
# Cloning Git
 | 
						|
Clone the git via the tool of your choice to your local computer
 | 
						|
```
 | 
						|
git clone https://git.mannheim.ccc.de/C3MA/PlantCtrl.git
 | 
						|
```
 | 
						|
switch to the newly cloned folder
 | 
						|
```
 | 
						|
cd PlantCtrl/rust
 | 
						|
```
 | 
						|
# Install rust
 | 
						|
rustup description
 | 
						|
install ldproxy
 | 
						|
```
 | 
						|
cargo install ldproxy
 | 
						|
```
 | 
						|
# Esp Toolchain
 | 
						|
espup description
 | 
						|
# Webpack install
 | 
						|
The buildin config website is currently build inline via npm - typescript - webpack and then directly embedded into the binary, so it is required to have webpack build working.
 | 
						|
```
 | 
						|
cd src_webpack/
 | 
						|
npm install
 | 
						|
```
 | 
						|
Check the webpack build is working
 | 
						|
```
 | 
						|
npx webpack
 | 
						|
```
 | 
						|
# Cargo Build
 |