Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nitedani/survey
https://github.com/nitedani/survey
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nitedani/survey
- Owner: nitedani
- Created: 2024-07-10T22:08:08.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-17T00:25:43.000Z (4 months ago)
- Last Synced: 2024-10-02T08:55:53.729Z (about 1 month ago)
- Language: JavaScript
- Size: 632 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Development:
1. git clone https://github.com/nitedani/survey
2. cd survey
3. create `.env` file
```
# .envAUTH_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/.envAUTH_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/.envAUTH_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.