parent
9caa9c1a87
commit
b2e2ec3073
@ -1,5 +1,200 @@
|
||||
node_modules
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/node,vim,emacs,linux
|
||||
# Edit at https://www.toptal.com/developers/gitignore?templates=node,vim,emacs,linux
|
||||
|
||||
### Emacs ###
|
||||
# -*- mode: gitignore; -*-
|
||||
*~
|
||||
\#*\#
|
||||
/.emacs.desktop
|
||||
/.emacs.desktop.lock
|
||||
*.elc
|
||||
auto-save-list
|
||||
tramp
|
||||
.\#*
|
||||
|
||||
# Org-mode
|
||||
.org-id-locations
|
||||
*_archive
|
||||
|
||||
# flymake-mode
|
||||
*_flymake.*
|
||||
|
||||
# eshell files
|
||||
/eshell/history
|
||||
/eshell/lastdir
|
||||
|
||||
# elpa packages
|
||||
/elpa/
|
||||
|
||||
# reftex files
|
||||
*.rel
|
||||
|
||||
# AUCTeX auto folder
|
||||
/auto/
|
||||
|
||||
# cask packages
|
||||
.cask/
|
||||
dist/
|
||||
|
||||
# Flycheck
|
||||
flycheck_*.el
|
||||
|
||||
# server auth directory
|
||||
/server/
|
||||
|
||||
# projectiles files
|
||||
.projectile
|
||||
|
||||
# directory configuration
|
||||
.dir-locals.el
|
||||
|
||||
# network security
|
||||
/network-security.data
|
||||
|
||||
|
||||
### Linux ###
|
||||
|
||||
# temporary files which can be created if a process still has a handle open of a deleted file
|
||||
.fuse_hidden*
|
||||
|
||||
# KDE directory preferences
|
||||
.directory
|
||||
|
||||
# Linux trash folder which might appear on any partition or disk
|
||||
.Trash-*
|
||||
|
||||
# .nfs files are created when an open file is removed but is still being accessed
|
||||
.nfs*
|
||||
|
||||
### Node ###
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# TypeScript v1 declaration files
|
||||
typings/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Microbundle cache
|
||||
.rpt2_cache/
|
||||
.rts2_cache_cjs/
|
||||
.rts2_cache_es/
|
||||
.rts2_cache_umd/
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
.env.test
|
||||
.env*.local
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
.parcel-cache
|
||||
|
||||
# Next.js build output
|
||||
.next
|
||||
|
||||
# Nuxt.js build / generate output
|
||||
.nuxt
|
||||
dist
|
||||
.DS_Store
|
||||
|
||||
# Gatsby files
|
||||
.cache/
|
||||
# Comment in the public line in if your project uses Gatsby and not Next.js
|
||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||
# public
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# TernJS port file
|
||||
.tern-port
|
||||
|
||||
# Stores VSCode versions used for testing VSCode extensions
|
||||
.vscode-test
|
||||
|
||||
### Vim ###
|
||||
# Swap
|
||||
[._]*.s[a-v][a-z]
|
||||
!*.svg # comment out if you don't need vector files
|
||||
[._]*.sw[a-p]
|
||||
[._]s[a-rt-v][a-z]
|
||||
[._]ss[a-gi-z]
|
||||
[._]sw[a-p]
|
||||
|
||||
# Session
|
||||
Session.vim
|
||||
Sessionx.vim
|
||||
|
||||
# Temporary
|
||||
.netrwhist
|
||||
# Auto-generated tag files
|
||||
tags
|
||||
# Persistent undo
|
||||
[._]*.un~
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/node,vim,emacs,linux
|
||||
|
@ -0,0 +1,13 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
redis:
|
||||
container_name: redis
|
||||
image: redis
|
||||
restart: always
|
||||
ports:
|
||||
- 6379:6379
|
||||
command: >
|
||||
--requirepass ${REDIS_PASSWORD}
|
||||
volumes:
|
||||
- ./docker/redis:/data
|
@ -0,0 +1,23 @@
|
||||
POSTGRES_PASSWORD=
|
||||
POSTGRES_USER=socialnetwork
|
||||
POSTGRES_DB=socialnetwork
|
||||
|
||||
REDIS_PASSWORD=
|
||||
|
||||
JWT_SECRET=
|
||||
|
||||
FACEBOOK_CLIENT_ID=
|
||||
FACEBOOK_CALLBACK_URL=
|
||||
FACEBOOK_CLIENT_SECRET=
|
||||
|
||||
GMAIL_ADDRESS=
|
||||
GMAIL_OAUTH_CLIENT_ID=
|
||||
GMAIL_OAUTH_PROJECT_ID=
|
||||
GMAIL_OAUTH_CLIENT_SECRET=
|
||||
GMAIL_OAUTH_REDIRECT_URL=
|
||||
|
||||
GMAIL_CODE=
|
||||
|
||||
GMAIL_ACCESS_TOKEN=
|
||||
GMAIL_REFRESH_TOKEN=
|
||||
GMAIL_EXPIRY_DATE=
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
check_available() {
|
||||
# Function to check if a program is installed
|
||||
which $1 &> /dev/null
|
||||
|
||||
if [ $? = 1 ]; then
|
||||
echo "$1 is not available, please install it before running the script"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
gen_password() {
|
||||
check_available openssl
|
||||
openssl rand -base64 32
|
||||
}
|
||||
|
||||
read -p "Redis password: (press enter to randomize): " redis_password
|
||||
redis_password=${redis_password:-`gen_password`}
|
||||
|
||||
|
||||
if [ ! -f "./.env" ]; then
|
||||
echo "Copying ./env.example to ./.env"
|
||||
cp ./env.example ./.env
|
||||
fi
|
||||
|
||||
sed -i -e "s#REDIS_PASSWORD=.*#REDIS_PASSWORD=${redis_password}#g" \
|
||||
"$(dirname "$0")/.env"
|
||||
|
||||
read -p "Start docker containers? (requires docker-compose) [Y/n] " start_docker
|
||||
start_docker=${start_docker:-Y}
|
||||
|
||||
if [[ $start_docker =~ [yY] ]]; then
|
||||
check_available docker-compose
|
||||
sudo docker-compose up -d
|
||||
fi
|
Loading…
Reference in new issue