Compare commits
3 Commits
87dadfa4a8
...
30a2e88685
| Author | SHA1 | Date | |
|---|---|---|---|
| 30a2e88685 | |||
| 10f7220fb6 | |||
| 08a934e388 |
@@ -1,7 +1,7 @@
|
|||||||
# Goyco
|
# Goyco
|
||||||
|
|
||||||
[](https://golang.org/)
|
[](https://golang.org/)
|
||||||
[](https://www.postgresql.org/)
|
[](https://www.postgresql.org/)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
|
|
||||||
Goyco is a Y Combinator-style news aggregation platform built in Go. It will allow you to host your own news aggregation platform, with a modern-ish UI and a fully functional REST API.
|
Goyco is a Y Combinator-style news aggregation platform built in Go. It will allow you to host your own news aggregation platform, with a modern-ish UI and a fully functional REST API.
|
||||||
@@ -18,14 +18,14 @@ You can get a preview of the application through the [screenshots](screenshots).
|
|||||||
|
|
||||||
### Technology Stack
|
### Technology Stack
|
||||||
|
|
||||||
It's basically pure Go (using Chi router), raw CSS and PostgreSQL 17.
|
It's basically pure Go (using Chi router), raw CSS and PostgreSQL 18.
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
- Go 1.25.0 or later
|
- Go 1.25.0 or later
|
||||||
- PostgreSQL 17 or later
|
- PostgreSQL 18 or later
|
||||||
- SMTP server for email functionality
|
- SMTP server for email functionality
|
||||||
|
|
||||||
### Setup PostgreSQL database and user
|
### Setup PostgreSQL database and user
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:17-alpine
|
image: postgres:18-alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- ../.env
|
- ../.env
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ services:
|
|||||||
- goyco
|
- goyco
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:17-alpine
|
image: postgres:18-alpine
|
||||||
restart: always
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
- ../.env
|
- ../.env
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ if [ "$EUID" -ne 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -s "Do you want to install PostgreSQL 17? [y/N] " INSTALL_PG
|
read -s "Do you want to install PostgreSQL 18? [y/N] " INSTALL_PG
|
||||||
if [ "$INSTALL_PG" != "y" ]; then
|
if [ "$INSTALL_PG" != "y" ]; then
|
||||||
echo "PostgreSQL 17 will not be installed"
|
echo "PostgreSQL 18 will not be installed"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ read -s -p "Enter password for PostgreSQL user 'goyco': " GOYCO_PWD
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y postgresql-17
|
apt-get install -y postgresql-18
|
||||||
|
|
||||||
systemctl enable --now postgresql
|
systemctl enable --now postgresql
|
||||||
|
|
||||||
@@ -43,6 +43,6 @@ END
|
|||||||
GRANT ALL PRIVILEGES ON DATABASE goyco TO goyco;
|
GRANT ALL PRIVILEGES ON DATABASE goyco TO goyco;
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "PostgreSQL 17 installed, database 'goyco' and user 'goyco' set up."
|
echo "PostgreSQL 18 installed, database 'goyco' and user 'goyco' set up."
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user