-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initialisation du css,dependence et back #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nikel !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ajout d'un fichier service de connexion avec axios
327347f
frontend/connexion.js
Outdated
import axios from "axios"; | ||
|
||
const connexion = axios.create({ | ||
baseURL: "https://some-domain.com/api/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non, c'est import.meta.env.VITE_BACKEND_URL + /api et non pas same-domain.com
frontend/index.html
Outdated
<link | ||
href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<title>Vite App</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mettez tout de suite votre titre et votre favicon
frontend/src/main.jsx
Outdated
{ | ||
path: "./admin", | ||
element: <AdminPage />, | ||
children: [{}], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ajouter une page dans les children Admin
backend/seed.js
Outdated
database.query("insert into profile(bio,avatar,alt) values (?,?,?)", [ | ||
faker.lorem.words(10), | ||
faker.internet.avatar(), | ||
"profile avatar", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Elle doit être unique
frontend/src/main.jsx
Outdated
element: <Home />, | ||
}, | ||
{ | ||
path: "./admin", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attention, Admin n'est pas un enfant de app, mais un élement à part entière
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
le path n'est pas bon
No description provided.