Rajatgurung / projecthunt-api

API for projecthunt a project hunting platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ProjectHunt API ✨ 🌻 🌱

Version License: MIT

Setup Locally

  1. Duplicate and rename .env.example to .env and provide all environment var

  2. Provide right DB username,password,schema

Running the server

Without Docker

npm i
npm run watch
  • Open other terminal window and run dev server
npm run start:dev

With Docker

docker-compose up --build

If you get DB does not exists, simply run this:

sh scripts/initdb.sh

Scripts

  1. seed - DB seed script, will insert dummy data
  2. watch - Watcher, for changes in TS files
  3. clean - Removes dist folder
  4. build - Compiles TS files, and spits JS version
  5. start - Start the server in prod mode
  6. start:dev - Start the server in dev mode
  7. lint - Lint the TS files with eslint

Show your support

Give a ⭐️ if this project helped you!

About

API for projecthunt a project hunting platform


Languages

Language:TypeScript 99.3%Language:Shell 0.4%Language:Dockerfile 0.3%