Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zavvdev/gurt
Social network
https://github.com/zavvdev/gurt
docker docker-compose laravel laravel-framework mobx-react nextjs nextjs13 nginx nginx-proxy php react react-query reactjs typescript
Last synced: about 2 months ago
JSON representation
Social network
- Host: GitHub
- URL: https://github.com/zavvdev/gurt
- Owner: zavvdev
- Created: 2023-08-12T12:25:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-07T22:45:26.000Z (about 1 year ago)
- Last Synced: 2024-04-16T08:49:04.030Z (10 months ago)
- Topics: docker, docker-compose, laravel, laravel-framework, mobx-react, nextjs, nextjs13, nginx, nginx-proxy, php, react, react-query, reactjs, typescript
- Language: TypeScript
- Homepage:
- Size: 3.66 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Requirements
- install docker
- install docker-compose
- install make### Setup project
1. Configure .env.\* files for all services
2. Open the terminal and go to `/etc` folder. Type `sudo nano hosts`. In opened file provide two host names for 127.0.0.1 ip address:
`127.0.0.1 gurt.local.gg` - local
`127.0.0.1 gurt.gg`- prod (you can replace with your production url)
(For windows: `C:\Windows\System32\drivers\etc\hosts`)
Save the file.
3. Run `make install` to install packages.
4. Run `make up` to create and start a production build (`gurt.gg`).
5. Run `make up-local` to start in dev mode (`gurt.local.gg`).## Commands:
### ✔ make install
Install all required modules
### ✔ make up
Start in production mode
### ✔ make up-local
Start locally
### ✔ make stop
Stop all running containers without removing them
### ✔ make start
Start all existing containers
### ✔ make restart
Restart all containers
### ✔ make down
Stop containers and remove containers, networks, volumes, and images created by 'up-prod' or 'up'
### ✔ make lint-client
Run linter for client
### ✔ make lint-client-fix
Fix lint errors for client
### ✔ make lint-server
Run linter for server
### ✔ make lint-server-fix
Fix lint errors for server
### ✔ make lint-storage
Run linter for storage server
### ✔ make lint-storage-fix
Fix lint errors for storage server
### ✔ make lint
Run all linters
### ✔ make lint-fix
Fix all linter errors
### ✔ make db-volume-clear
Clear database volume data
(Be careful! Use only when you need to switch to prod database locally for testing purpose)