Compare commits
2 Commits
d15980bb52
...
fd5121be80
| Author | SHA1 | Date | |
|---|---|---|---|
|
fd5121be80
|
|||
|
b4add42f2e
|
@@ -1,3 +1,11 @@
|
|||||||
# whatsfreeinmyfree
|
# whatsfreeinmyfree
|
||||||
|
|
||||||
Record of what classrooms are free when I have a free. CS Practice
|
Record of what classrooms are free when I have a free. CS Practice
|
||||||
|
|
||||||
|
## Use
|
||||||
|
|
||||||
|
To run this, do the folowing:
|
||||||
|
- in `frontend` execute `npm run build`
|
||||||
|
- in `backend` execute `npm run dev`
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
1
backend/.gitignore
vendored
1
backend/.gitignore
vendored
@@ -25,3 +25,4 @@ dist-ssr
|
|||||||
|
|
||||||
|
|
||||||
adduser.sql
|
adduser.sql
|
||||||
|
database.db
|
||||||
Binary file not shown.
@@ -47,9 +47,11 @@ app.use(cors());
|
|||||||
app.use(e.json());
|
app.use(e.json());
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json());
|
||||||
|
|
||||||
app.get('/', (req, res) => {
|
// app.get('/', (req, res) => {
|
||||||
res.send("Nothing Here");
|
// res.send("Nothing Here");
|
||||||
});
|
// });
|
||||||
|
|
||||||
|
app.use('/', e.static('../frontend/dist'));
|
||||||
|
|
||||||
app.get('/getPeriod', (req, res) => {
|
app.get('/getPeriod', (req, res) => {
|
||||||
// req has nothing
|
// req has nothing
|
||||||
|
|||||||
Reference in New Issue
Block a user