Skip to content

Commit

Permalink
Merge branch 'develop-questions' into develop-investigate-wikidata
Browse files Browse the repository at this point in the history
Fix conflict with index.js
  • Loading branch information
uo288347 committed Feb 27, 2024
2 parents b999aab + 811e7a1 commit 202c738
Show file tree
Hide file tree
Showing 7 changed files with 710 additions and 0 deletions.
23 changes: 23 additions & 0 deletions questiongeneration/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Imports (express syntax)
const express = require('express');
const cors = require('cors');
// Routes:
const questionRoutes = require('./routes/question');

// App definition and
const app = express();
const port = 8010;

// Middlewares added to the application
app.use(cors());
app.use(express.json());

// Routes middlewares to be used
app.use('/questions', questionRoutes);

// Start the service
const server = app.listen(port, () => {
console.log(`Question Generation Service listening at http://localhost:${port}`);
});

module.exports = server
Loading

0 comments on commit 202c738

Please sign in to comment.