School project with React and Laravel API.
In the Web-App directory, you can run:
To install all necessary depedancies.
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
First, you need to create an empty database.
In the API directory, you need to create '.env' file based on '.env.example'.
After that, you can run :
To install all necessary depedancies.
To setup the database.
To run the api.
Axios example :
axios.post("http://localhost:8000/api/errors/new", {
message: "Error message", // optional
code: 500, // optional
path: "/", // optional
line: 1, // optional
timestamp: "2023-01-01 00:00:00" // optional (default: now)
}, { Authorization: `Bearer yourProjectKey` })