Skip to content

Silver-IT/jobhub-api

Repository files navigation

API service for Jobhub

Culture

Documentation

Deployment Guideline

Technical Stacks

Environment

Make a copy of .env.example.

$ cp .env.example .env

Database Configuration

Configure DATABASE_URL in .env file.

DATABASE_URL = postgres:https://[USER_NAME]:[PASSWORD]@[DOMAIN]:[PORT_NUMBER]/[DATABASE_NAME]
Example
DATABASE_URL = postgres:https://root:root@localhost:5432/jobhub

Migrations

  • Run typeorm CLI, see detailed doc here
$ npm run typeorm <additional-commands>
  • Create a new migration
$ npm run typeorm:migrate <migration-name> # We recommend to use Pascal Case for migration
  • Run migration manually
$ npm run typeorm:run

Preparing Idea-board Entries

  • Prepare idea-board images.
  • Upload ide-board images to AWS S3 bucket.
$ npm run idea-seed -- --directory=</path/to/images/directory> --from=<from-num> --to=<to-num>
  • Prepare idea-board data file.
    Store idea-board entries to /project-dir/data/idea-board-data.txt in the following format.
<image-number>\t<project-accessory-type>\t<material-type>\n

Development

$ npm install

# run server in watch mode
$ npm run start:dev

# build in production mode
$ npm run start:prod

API Documentation

You can check detailed API documentation from here


Nest Logo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages