-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/ubclaunchpad/clinical-logging…
… into log-history-page
- Loading branch information
Showing
27 changed files
with
1,977 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
venv/ | ||
*.pyc | ||
*.pyo | ||
*.pyd | ||
*.pyz | ||
*.pyw | ||
*.pyc | ||
*.pyo | ||
*.pyd | ||
*.pyz | ||
*.pyw | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Ignore every file in this folder | ||
* | ||
# Except this one | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SUPABASE_JWT_SECRET= | ||
SUPABASE_URL= | ||
SUPABASE_ANON_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,4 +129,6 @@ dist | |
.yarn/unplugged | ||
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
.pnp.* | ||
|
||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
import express from "express"; | ||
import cors from "cors"; | ||
import dotenv from "dotenv"; | ||
import express from "express"; | ||
import authRoutes from "./src/routes/authRoutes.js"; | ||
import logRoutes from "./src/routes/logRoutes.js"; | ||
|
||
dotenv.config(); | ||
|
||
const corsOptions = { | ||
origin: ["http://localhost:5173"], | ||
}; | ||
const app = express(); | ||
const PORT = process.env.PORT || 8080; | ||
|
||
app.use(cors(corsOptions)); | ||
app.use(express.json()); | ||
|
||
const PORT = process.env.PORT || 8080; | ||
|
||
app.get("/api", (req, res) => { | ||
res.json({ message: "Hello from server!" }); | ||
}); | ||
//Routes | ||
app.use('/api/auth', authRoutes); | ||
app.use('/api/log', logRoutes); | ||
|
||
app.listen(PORT, () => { | ||
console.log(`Server listening on ${PORT}`); | ||
}); | ||
}); | ||
|
Oops, something went wrong.