Initial commit: React + Django full-stack project setup

- Backend: Django 4.2 + DRF + JWT + GraphQL
- Frontend: React 18 + MobX + styled-components
- Deployment: Docker + Docker Compose + Nginx
- Database: PostgreSQL support
- Documentation: README, INIT, PROJECT_DOCS, TESTING
This commit is contained in:
mashen
2026-04-09 12:06:14 +00:00
commit cb491e8b87
49 changed files with 1804 additions and 0 deletions

35
frontend/src/App.js Normal file
View File

@@ -0,0 +1,35 @@
import React from 'react';
import { Routes, Route } from 'react-router-dom';
import styled from 'styled-components';
const Container = styled.div`
max-width: 1200px;
margin: 0 auto;
padding: 20px;
`;
const Header = styled.header`
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 2px solid #eee;
`;
const Title = styled.h1`
margin: 0;
font-size: 28px;
`;
function App() {
return (
<Container>
<Header>
<Title>React + Django App</Title>
</Header>
<Routes>
<Route path="/" element={<div>Welcome to the app!</div>} />
</Routes>
</Container>
);
}
export default App;