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.ymlmake sure to change theOUTCLIMB_DB_PASSWORDunder thebackendservice andMARIADB_PASSWORDunder thedbservice to something more secure - Run
docker-compose buildto build the images - Run
docker-compose up -dto 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 verifyto download all the backend dependencies. - From the root of the project run
go run cmd/main.goto run the service.
- Make sure you have Node v18 installed. If you use NVM (Node Version Manager) then run
nvm usefrom the root of the project. - Run
npm cito download all the frontend dependencies. - Run
npm run devto run the frontend service