Skip to content

Commit

Permalink
Added run command to backend readme and 404 page for frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwroge committed Oct 24, 2024
1 parent 7a80dae commit ffecfd5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ poetry install # Installs all dependencies

poetry shell # Activates the virtual environment

fastapi run # Run the Fast API server

# If using a shell use this:
startup_scripts/entrypoint.sh # Creates test users and runs the API in developer mode

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import {SystemAdminDashboard} from './pages/SystemAdminDashboard';
import {enableMocking} from './utils/testing/browser';
import {useAppDispatch} from './redux/hooks/store';
import {setCredentials} from './redux/authSlice';
import NotFound from './pages/NotFound';

function HuuApp() {
const [session] = useSessionMutation();
Expand Down Expand Up @@ -151,6 +152,7 @@ function HuuApp() {
</ProtectedRoute>
}
/>
<Route path="*" element={<NotFound />} />
</Routes>
</>
);
Expand Down
14 changes: 14 additions & 0 deletions frontend/src/pages/NotFound.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';
import {Link} from 'react-router-dom';

const NotFound = () => {
return (
<div style={{textAlign: 'center', marginTop: '50px'}}>
<h1>404 - Page Not Found</h1>
<p>Sorry, the page you are looking for does not exist.</p>
<Link to="/">Go Back to Home</Link>
</div>
);
};

export default NotFound;

0 comments on commit ffecfd5

Please sign in to comment.