sass, general front end config, testing server

This commit is contained in:
Mikayla Dobson
2022-11-17 12:08:26 -06:00
parent 31995bde8e
commit efef8ab2e8
12 changed files with 409 additions and 146 deletions

View File

@@ -1,11 +1,18 @@
import express, { Request, Response } from 'express';
const app = express();
import cors from 'cors';
const port = 8080;
const app = express();
app.use(cors());
app.get('/', (req: Request, res: Response) => {
res.send('express');
})
app.get('/hello', (req, res) => {
res.send({ message: "hello from the server!!" });
})
app.listen(port, () => {
console.log('listening on ' + port);
})