Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)