https://github.com/mlsakiit/weave-backend
https://github.com/mlsakiit/weave-backend
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mlsakiit/weave-backend
- Owner: MLSAKIIT
- Created: 2025-01-14T05:23:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-17T19:12:55.000Z (about 1 year ago)
- Last Synced: 2025-03-28T06:23:36.342Z (about 1 year ago)
- Language: TypeScript
- Size: 104 KB
- Stars: 3
- Watchers: 0
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# weave-backend
To install dependencies:
```sh
bun install
```
To run:
```sh
bun run dev
```
open http://localhost:3000
## Docker Usage
Build the image:
```bash
docker build -t weave-backend .
```
Run the container:
```bash
docker run -d -p 3000:3000 --name weave-backend weave-backend
```
The API will be available at http://localhost:3000
## Docker Management
### Rebuild and Restart
After making changes to the code, rebuild and restart the container:
```bash
# Stop the running container
docker stop weave-backend
# Remove the old container
docker rm weave-backend
# Rebuild the image
docker build -t weave-backend .
# Start a new container
docker run -d -p 3000:3000 --name weave-backend weave-backend
```
### Quick Restart (without rebuild)
To restart the container without rebuilding:
```bash
docker restart weave-backend
```
### Stop and Remove
To stop and remove the container:
```bash
# Stop the container
docker stop weave-backend
# Remove the container
docker rm weave-backend
# Optionally, remove the image
docker rmi weave-backend
```
### View Logs
To view container logs:
```bash
# Follow logs in real-time
docker logs -f weave-backend
# View last N lines
docker logs --tail 100 weave-backend
```