Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -251,5 +251,11 @@ sketch
# To allow for local versions of the dataset CSV files, without adding it to Git
**.csv


# For postgreSQL in docker
#01-create-tables.sql
#02-insert-data.sql

# Keeping docker data out of the github repo
Database/dev-env/postgres-data

11 changes: 11 additions & 0 deletions backend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# .env.example — copy to .env and fill in your VM's values:
# cp .env.example .env
#
# never commit the real .env — keep it listed in .gitignore.
PGUSER=p2user
PGPASSWORD=changeme
PGHOST=localhost
PGPORT=5432
PGDATABASE=prosjekt2

GRAPHQL_PORT=3001
22 changes: 22 additions & 0 deletions backend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'

export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs.flat.recommended,
reactRefresh.configs.vite,
],
languageOptions: {
globals: globals.browser,
},
},
])
Loading