- GraphQL part -
@mono_guerin
Create a new folder for the project, name it "chat-server"
mkdir chat-server && cd chat-serverInit project with npm using the next code
npm init -yInstall express dependency
npm install expressCreate a new folder called src and a file called index.js and create the hello world example from express
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Hello World!');
});
app.listen(3000, () => {
console.log('Example app listening on port 3000!');
});Install eslint dependency
npm install --save-dev eslintRun init command and follow instructions
npx eslint --init