mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-15 20:16:39 +02:00
15 lines
309 B
JavaScript
15 lines
309 B
JavaScript
/* eslint-disable no-console */
|
|
const express = require('express');
|
|
const path = require('path');
|
|
|
|
const app = express();
|
|
const port = 3001;
|
|
|
|
app.use(express.static(path.join(__dirname, 'public')));
|
|
app.listen(port, (err) => {
|
|
if (err) {
|
|
console.log(err);
|
|
}
|
|
console.log(`Listening at ${port}`);
|
|
});
|