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.
- Swagger API
- Nest.js / TypeScript
- PostgreSQL
- Typeorm
- Passport
- Clone the repository
- Set up dependencies with
npm install
. - Build project via
npm run build
. The finished project is in thebuild
folder - 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]
- Initialize DB with
npm run migrate:up
CREATE USER student WITH PASSWORD 'student';
CREATE DATABASE kupipodariday;
GRANT ALL PRIVILEGES ON DATABASE kupipodariday TO student;