Skip to content

Commit

Permalink
feat: remove appwrite and add nextjs backend
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith404 committed Oct 9, 2022
1 parent 7728351 commit 4bab33a
Show file tree
Hide file tree
Showing 153 changed files with 13,398 additions and 2,809 deletions.
8 changes: 0 additions & 8 deletions .dockerignore

This file was deleted.

22 changes: 14 additions & 8 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# Appwrite
APPWRITE_FUNCTION_API_KEY=your-api-key
PUBLIC_APPWRITE_HOST=http://localhost/v1
# DATABASE
DB_URL="postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}/pingvin-share?schema=public"
DB_USER=postgres
DB_PASSWORD=postgres
DB_HOST=db:5432

# Frontend
PUBLIC_MAX_FILE_SIZE=300000000 # Note: Should be the same as in the _APP_STORAGE_LIMIT in the Appwrite .env file
PUBLIC_DISABLE_REGISTRATION=true # Note: In the Appwrite console you have to change your user limit to 0 if false and else to 1
PUBLIC_DISABLE_HOME_PAGE=false
PUBLIC_MAIL_SHARE_ENABLED=false # Note: If set to true you have to add your SMTP server. See "Additional configurations" in the README file
# GENERAL
APP_URL=http://localhost:3000
BACKEND_URL=http://backend:8080
SHOW_HOME_PAGE=true
ALLOW_REGISTRATION=true
MAX_FILE_SIZE=1000000000

# SECURITY
JWT_SECRET=long-random-string
29 changes: 14 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules
/.pnp
.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/
/frontend/.next/
/frontend/out/

# production
/build
# build
build/
dist/

# misc
.DS_Store
Expand All @@ -25,16 +21,19 @@ yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local
# env file
.env

# vercel
.vercel

# typescript
*.tsbuildinfo
.env

# PWA
/public/workbox-*
/public/sw.*
/frontend/public/workbox-*
/frontend/public/sw.*

# project specific
/backend/uploads/
/uploads/
104 changes: 0 additions & 104 deletions .setup/data/collections.ts

This file was deleted.

53 changes: 0 additions & 53 deletions .setup/data/functions.ts

This file was deleted.

60 changes: 0 additions & 60 deletions .setup/index.ts

This file was deleted.

Loading

0 comments on commit 4bab33a

Please sign in to comment.