delivery_system/src/index.ts

14 lines
489 B
TypeScript

// INFO: this is a simple in-memory cache, for demo purposes only. this app will not scale!
// INFO: SQL database is required for continuing this application!
// INFO: Used Map instead of Object for better performance.
// INFO: Making foundation for PostgresSQL database. migration files are in src/migrations
import app from './app';
const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
console.log("STARTING ... ")
console.log(`Server is running on port ${PORT}`);
});