/spsk-vue-typescript

Repository for the website of Skillingaryds Pistolskytteklubb

Primary LanguageTypeScript

Team website for Skillingaryds Pistolskytteklubb

What is this?

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!

Setup

Pre-requisites

  1. Download & install Docker desktop from here.
    • Docker dekstop needs to be running in the background while developing locally.
  2. Download & install DBeaver from here.
    • This makes it easier for you to connect to and inspect the database.
  3. Optional: Download Postman from here.
    • Postman makes it easy to test the server endpoints.

Project

  1. Pull the repo and run the command yarn.
  2. Start the dev-server using yarn start.

Local PostgreSQL database

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:

Why a public repo?

It wont be later on, but for now it will be :)