Skip to content

Commit

Permalink
Merge pull request #2 from tazo90/feature/authentication
Browse files Browse the repository at this point in the history
Feature/authentication
  • Loading branch information
tazo90 authored Apr 15, 2022
2 parents fa269d5 + 8e448dd commit 2441b5a
Show file tree
Hide file tree
Showing 31 changed files with 3,361 additions and 1,085 deletions.
21 changes: 19 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
NODE_ENV=development
// IP_ADDRESS=192.168.0.203
IP_ADDRESS=localhost
NEXT_PUBLIC_API_ENDPOINT=http://localhost:8000/api/v1/
NEXT_PUBLIC_MOCK_API_ENDPOINT=http://localhost:3000/api
# NEXT_PUBLIC_API_ENDPOINT=http://localhost:8000/api/v1/
# NEXT_PUBLIC_MOCK_API_ENDPOINT=http://localhost:3000/api

# - SHARED **************************************************************************************************
NEXT_PUBLIC_WEBAPP_URL='http://localhost:3000'
# Change to 'http://localhost:3001' if running the website simultaneously
NEXT_PUBLIC_WEBSITE_URL='http://localhost:3000'

# - NEXTAUTH
# Required for Vercel hosting - set NEXTAUTH_URL to equal your BASE_URL
NEXTAUTH_URL='http://localhost:3000'
JWT_SECRET='secret'
# Used for cross-domain cookie authentication
# NEXTAUTH_COOKIE_DOMAIN=.example.com

POSTGRES_USER=seye
POSTGRES_PASSWORD=seye
POSTGRES_DB=seyedb
DATABASE_URL=postgresql://seye:seye@localhost:5432/seyedb?schema=public&sslmode=prefer&connect_timeout=300
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3.8"
services:
postgres:
image: postgres:14
restart: always
env_file:
- .env
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
postgres:
Loading

0 comments on commit 2441b5a

Please sign in to comment.