Initial commit
This commit is contained in:
		
							
								
								
									
										37
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,37 @@
 | 
			
		||||
# MoneyMgr
 | 
			
		||||
 | 
			
		||||
## Setup dev env
 | 
			
		||||
1. Install prerequisites:
 | 
			
		||||
   1. docker
 | 
			
		||||
   2. docker-compose
 | 
			
		||||
   3. rust
 | 
			
		||||
   4. node
 | 
			
		||||
 | 
			
		||||
2. Start services
 | 
			
		||||
```
 | 
			
		||||
cd moneymgr_backend
 | 
			
		||||
mkdir -p storage/{db,redis-data,redis-conf,minio}
 | 
			
		||||
docker compose up
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
3. Install Diesel CLI:
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
sudo apt install libpq5 libpq-dev pkg-config libssl-dev cmake
 | 
			
		||||
cargo install diesel_cli --no-default-features --features postgres
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
4. Initialize database:
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
diesel migration run
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
> Note: You can access the database directly using this command:
 | 
			
		||||
> 
 | 
			
		||||
> ```bash
 | 
			
		||||
> PGPASSWORD=pass psql -h localhost -p 5432 -U user -d moneymgr
 | 
			
		||||
> ```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user