Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/nitedani/survey


https://github.com/nitedani/survey

Last synced: 29 days ago
JSON representation

Awesome Lists containing this project

README

        

### Development:
1. git clone https://github.com/nitedani/survey
2. cd survey
3. create `.env` file
```
# .env

AUTH_SECRET=""
AUTH_GOOGLE_ID=""
AUTH_GOOGLE_SECRET=""
ROOT_URL="http://localhost"
```
4. `docker compose -f docker-compose.yml -f docker-compose-supabase.yml -f docker-compose-supabase-s3.yml up`

The database is stored in a docker volume.

To reset the database `docker compose down -v`

The website is running on http://localhost

The database admin panel is running on http://localhost/dbeaver

### Local deploy:
1. ssh to target machine and ensure docker is installed
2. git clone https://github.com/nitedani/survey
3. cd survey
4. create `deployment_scripts/.env`
```
# deployment_scripts/.env

AUTH_SECRET=""
AUTH_GOOGLE_ID=""
AUTH_GOOGLE_SECRET=""
ROOT_URL="https://domain.com"
```

5. `./deployment_scripts/deploy-local.sh`

The service will listen on `443`, `80` ports, automatically redirecting to https.

The https certificate is automatically created.

### Remote deploy:
You need to configure your local `~/.ssh/config` and ensure docker is running on the local and remote machine.

1. git clone https://github.com/nitedani/survey
2. cd survey
3. change settings in `deployment_scripts/deploy-remote.sh`
4. create `deployment_scripts/.env`
```
# deployment_scripts/.env

AUTH_SECRET=""
AUTH_GOOGLE_ID=""
AUTH_GOOGLE_SECRET=""
ROOT_URL="https://domain.com"
```

5. `./deployment_scripts/deploy-remote.sh`

The service will listen on `443`, `80` ports, automatically redirecting to https.

The https certificate is automatically created.