Skip to content

NodeJS + TypeScript + Express + PostgreSQL

License

Notifications You must be signed in to change notification settings

zsrg/messenger-server

Repository files navigation

messenger-server

screenshot

Available scripts

In the project directory, you can run:

  • npm start - runs the server in the development mode
  • npm run build - builds the server for production to the build folder

Config

The configuration file config.json is read from the server's startup directory.

Options:

  • server
    • port - server port
  • database
    • user - database user
    • password - database password
    • host - database host
    • port - database port
    • database - database name

Example:

{
  "server": {
    "port": 4000
  },
  "database": {
    "user": "messenger",
    "password": "password",
    "host": "localhost",
    "port": 5432,
    "database": "messenger"
  }
}

Command line options

  • -v, --version - print version
  • -h, --help - print command line options

Database

API

Requirements

  • Node.js: 20.12.2
  • PostgreSQL: 14.0

License

MIT