In the project directory, you can run:
npm start
- runs the server in the development modenpm run build
- builds the server for production to thebuild
folder
The configuration file config.json
is read from the server's startup directory.
Options:
server
port
- server port
database
user
- database userpassword
- database passwordhost
- database hostport
- database portdatabase
- database name
Example:
{
"server": {
"port": 4000
},
"database": {
"user": "messenger",
"password": "password",
"host": "localhost",
"port": 5432,
"database": "messenger"
}
}
-v
,--version
- print version-h
,--help
- print command line options
- Database scripts: database.sql
- Node.js: 20.12.2
- PostgreSQL: 14.0