Skip to content

Commit

Permalink
Merge pull request #7 from moevm/front-api
Browse files Browse the repository at this point in the history
API functions for frontend and Redux
  • Loading branch information
10023r authored Dec 23, 2023
2 parents 7f1be65 + a9c55f2 commit 47f63b7
Show file tree
Hide file tree
Showing 19 changed files with 2,101 additions and 25 deletions.
1,701 changes: 1,701 additions & 0 deletions backend/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions backend/src/controllers/LoginController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { configDotenv } from "dotenv";
// @ts-ignore
import express from "express";
import { usersService } from "../services/UsersService";

Expand Down
4 changes: 3 additions & 1 deletion backend/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// @ts-ignore
import express from "express";
import * as dotenv from "dotenv";
import mongoose from "mongoose";
import router from "./router";
// @ts-ignore
import cors from "cors";
import { dataInitializer } from "./init_data/init_data";

Expand All @@ -11,9 +13,9 @@ const PORT = process.env.PORT || 1234

const app = express()

app.use(cors())
app.use(express.json())
app.use("/api", router)
app.use(cors())

const start = async () => {
try {
Expand Down
207 changes: 199 additions & 8 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@
"preview": "vite preview"
},
"dependencies": {
"@types/react-redux": "^7.1.33",
"axios": "^1.6.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.21.0"
"react-redux": "^9.0.4",
"react-router-dom": "^6.21.0",
"redux": "^5.0.0"
},
"devDependencies": {
"@types/react": "^18.2.37",
Expand Down
Loading

0 comments on commit 47f63b7

Please sign in to comment.