This is the main repo for the website of Skillingaryds Pistolskytteklubb (Current website).
This repo is a mono repo consisting of both the frontend (client) and the backend (server).
IN PROGRESS! This setup does not yet work!
- Download & install Docker desktop from here.
- Docker dekstop needs to be running in the background while developing locally.
- Download & install DBeaver from here.
- This makes it easier for you to connect to and inspect the database.
- Optional: Download Postman from here.
- Postman makes it easy to test the server endpoints.
- Pull the repo and run the command
yarn
. - Start the dev-server using
yarn start
.
Test api: https://www.postman.com/downloads/
Docker DB: docker run --name Postgres -e POSTGRES_PASSWORD=password -p 8000:5432 -d postgres
Add user to DB:
CREATE USER developer WITH PASSWORD 'developer' SUPERUSER
env files:
It wont be later on, but for now it will be :)