Outclimb.gay is a website for Outclimb, a Minneapolis-based organization dedicated to making climbing accessible to as many trans and queer people as possible.
- In the
docker-compose.yml
make sure to change theOUTCLIMB_DB_PASSWORD
under thebackend
service andMARIADB_PASSWORD
under thedb
service to something more secure - Run
docker-compose build
to build the images - Run
docker-compose up -d
to run the containers
- Make sure you have both Go v1.20 and MySQL/MariaDB installed locally
- Create a database and user in your database for the service to use. Make sure the user has appropriate permissions to the database.
- Set the following environment variables:
OUTCLIMB_DB_HOST
- The address of the server. (Ex. localhost or 127.0.0.1)OUTCLIMB_DB_NAME
- The name of the database you created in step 2. (Ex. outclimb)OUTCLIMB_DB_USER
- The username of the user you created in step 2. (Ex. outclimb)OUTCLIMB_DB_PASSWORD
- The password for the user you created in step 2.
- From the root of the project run
go mod download && go mod verify
to download all the backend dependencies. - From the root of the project run
go run cmd/main.go
to run the service.
- Make sure you have Node v18 installed. If you use NVM (Node Version Manager) then run
nvm use
from the root of the project. - Run
npm ci
to download all the frontend dependencies. - Run
npm run dev
to run the frontend service