Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/authentication #2

Merged
merged 12 commits into from
Apr 15, 2022
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
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