Backend for Socialko, an open source social media app.
Other repositories regarding Socialko, can be found here.
pnpm installDATABASE_URL="postgres://username:password@URL"
JWT_SECRET=""
EMAIL_CONFIRM_SECRET=""
FORGOT_PASSWORD_SECRET=""
MAIL_HOST="mail.aerio.cloud"
MAIL_USER="no-reply@socialko.cc"
MAIL_PASSWORD=""
MAIL_FROM="no-reply@socialko.cc"
MAIL_CONFIRM_URL=""
MAIL_FORGOT_PASSWORD_URL=""
S3_BUCKET=
S3_REGION=eu-central-1
S3_ACCESS_KEY=
S3_SECRET_KEY=
S3_ENDPOINT=s3.eu-central-1.wasabisys.com
SWAGGER_TITLE="Socialko API"
SWAGGER_CONTACT_NAME="Aiken Tine Ahac"
SWAGGER_CONTACT_WEBSITE="https://aikenahac.com"
SWAGGER_CONTACT_EMAIL="ahac.aiken@gmail.com"
SWAGGER_DESCRIPTION="Socialko API Documentation"
SWAGGER_API_VERSION="0.0.1"
SWAGGER_TAG="socialko"
API documentation is available on the /api endpoint.
- Copy
docker-compose.yaml.exampletodocker-compose.yaml1.1. Configure username, password and/or database name 1.2. Comment out services other thandb - Run with
docker-compose up -d - Create database tables with
npx prisma migrate dev --name init
# development
$ pnpm start
# development mode
$ pnpm start:dev# unit tests
$ pnpm test
# e2e tests
$ pnpm test:e2e
# test coverage
$ pnpm test:covTo deploy the app on production with my build, copy the docker-compose.yaml.example (if you used it for the database) to the server as docker-compose.yaml and modify the environment variables. Once on the server, run docker compose up -d in a folder with the compose file.