diff options
author | 2023-08-10 18:42:20 +0200 | |
---|---|---|
committer | 2023-08-10 22:47:33 +0200 | |
commit | bdb0762696ccf028c30b2957b93a01da7bf67571 (patch) | |
tree | ffb3e9483eb5e0fcfa1aed4a6cbecc3b28a9e09a /index.js | |
download | auth-service-bdb0762696ccf028c30b2957b93a01da7bf67571.tar.gz auth-service-bdb0762696ccf028c30b2957b93a01da7bf67571.tar.bz2 auth-service-bdb0762696ccf028c30b2957b93a01da7bf67571.zip |
init commit
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/index.js b/index.js new file mode 100644 index 0000000..30a99c6 --- /dev/null +++ b/index.js @@ -0,0 +1,14 @@ +const express = require('express') +const authRoutes = require('./routes/auth') +require('dotenv-safe').config() +require('./db/mongoose') + +const app = express() +const port = process.env.PORT + +app.use(express.json()) +app.use('/', authRoutes) + +app.listen(port, () => { + console.log("Server is up on port " + port + ".") +}); |