Enhance backend and frontend setup with MySQL integration, Docker configurations, and toast notifications
- Updated .gitignore to include additional environment and build files - Configured Dockerfiles for backend and frontend with npm install and port exposure - Added MySQL connection pool and query function in backend services - Implemented form submission with toast notifications in MainForm component - Updated package.json and package-lock.json for new dependencies - Enhanced routing and layout in frontend with toast notifications
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
import { myToast } from "./toastify";
|
||||
|
||||
export const registerLos = async (data: any) => {
|
||||
console.log(data);
|
||||
}
|
||||
await fetch("http://localhost:8002/lose", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify(data),
|
||||
}).then((response) => {
|
||||
if (response.ok) {
|
||||
myToast("Los erfolgreich registriert!", "success");
|
||||
} else {
|
||||
myToast("Fehler bei der Registrierung des Loses.", "error");
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user