championswimmer / onepixel_backend
- вторник, 7 ноября 2023 г. в 00:00:05
Backend code for the 1px.li URL shortener service.
Simplest way to get it running is
./data directory where your database will be storeddocker-compose upWe will use docker to run an instance of database, but we will run the project using air locally
./data directory where your database will be storeddocker-compose up -d postgres127.0.0.1 postgres to your /etc/hosts file 1air in the root directory of the project 2Note[1] This is because the server is configured to connect to
host=postgresfor the database.
Note[2]: you can also run
go run src/main.gobut it will not reload on changes