Skip to content

DonnieErgo/kupipodariday-backend

Repository files navigation

REST API for web app KupiPodariDay

API for a wish-list service where each registered user can say what kind of gift they would like and send money for a gift for another user, specifying the amount they are willing to spend on it.

Stack

  • Swagger API
  • Nest.js / TypeScript
  • PostgreSQL
  • Typeorm
  • Passport

Local deployment

  1. Clone the repository
  2. Set up dependencies with npm install.
  3. Build project via npm run build. The finished project is in the build folder
  4. Create .env file
PORT = [server port]
DATABASE_HOST = [database host]
DATABASE_PORT = [database port]
DATABASE_NAME = [database name]
DATABASE_TYPE = [database type]
DATABASE_USERNAME = [database user name]
DATABASE_PASSWORD = [database user password]
SALT = [`saltOrRounds` value for bcrypt]
JWT_SECRET = [jwt secret value]
  1. Initialize DB with npm run migrate:up

DB

CREATE USER student WITH PASSWORD 'student';
CREATE DATABASE kupipodariday;
GRANT ALL PRIVILEGES ON DATABASE kupipodariday TO student;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published