Follow these steps to create your AccountsPro GitHub repository with all the files.
-
Go to GitHub: https://github.com
-
Click "New repository" (green button)
-
Repository settings:
- Repository name:
accountspro - Description:
Professional accounting application with Django REST API and React TypeScript frontend - Visibility: Public (or Private if preferred)
- ✅ Add a README file
- ✅ Add .gitignore (choose Python template initially)
- ✅ Choose a license (MIT recommended)
- Repository name:
-
Click "Create repository"
git clone https://github.com/yourusername/accountspro.git
cd accountspro# Create main directories
mkdir backend frontend
# Create backend subdirectories
cd backend
mkdir accounts_project accounts transactions users
mkdir -p accounts/management/commands
mkdir -p accounts/migrations
mkdir -p transactions/migrations
mkdir -p users/migrations
mkdir -p .github/workflows
cd ..Create these files in the root directory:
- README.md - Replace the default one with our comprehensive version
- LICENSE - Our MIT license file
- CONTRIBUTING.md - Contribution guidelines
- .gitignore - Root gitignore file
Create these files in the backend directory:
- requirements.txt
- manage.py
- Dockerfile
- docker-compose.yml
- .env.example
- .gitignore (backend-specific)
- init.py (empty file)
- settings.py
- urls.py
- wsgi.py (Django will create this)
- init.py (empty file)
- admin.py
- apps.py
- models.py
- serializers.py
- views.py
- migrations/init.py (empty file)
- management/init.py (empty file)
- management/commands/init.py (empty file)
- management/commands/create_sample_data.py
- init.py (empty file)
- admin.py
- apps.py
- models.py
- serializers.py
- views.py
- migrations/init.py (empty file)
- init.py (empty file)
- admin.py
- apps.py
- models.py
- migrations/init.py (empty file)
- package.json
- vite.config.ts
- tsconfig.json
- tsconfig.node.json
- tailwind.config.js
- postcss.config.js
- .env.example
- .gitignore (frontend-specific)
- index.html
- main.tsx
- App.tsx (copy from the React artifact)
- index.css
- types/index.ts
- services/api.ts
- ci.yml - CI/CD pipeline
# Add all files
git add .
# Initial commit
git commit -m "feat: initial project setup with Django backend and React frontend
- Add Django REST API with accounts and transactions apps
- Add React TypeScript frontend with Sage-style UI
- Include Docker configuration for easy deployment
- Add comprehensive documentation and contributing guidelines
- Set up CI/CD pipeline with GitHub Actions"
# Push to GitHub
git push origin main# Create and switch to develop branch
git checkout -b develop
# Push develop branch
git push -u origin developIn GitHub repository settings:
- Go to Settings → Branches
- Add rule for
mainbranch:- ✅ Require pull request reviews before merging
- ✅ Require status checks to pass before merging
- ✅ Require branches to be up to date before merging
- ✅ Include administrators
In your GitHub repository:
- Click the ⚙️ gear icon next to "About"
- Add topics:
django,react,typescript,accounting,finance,rest-api,postgresql,vite
Create these in .github/ directory:
mkdir -p .github/ISSUE_TEMPLATECreate bug report and feature request templates.
# .github/pull_request_template.mdYour final repository should look like this:
accountspro/
├── .github/
│ └── workflows/
│ └── ci.yml
├── backend/
│ ├── accounts_project/
│ ├── accounts/
│ ├── transactions/
│ ├── users/
│ ├── requirements.txt
│ ├── manage.py
│ ├── Dockerfile
│ ├── docker-compose.yml
│ ├── .env.example
│ └── .gitignore
├── frontend/
│ ├── src/
│ ├── package.json
│ ├── vite.config.ts
│ ├── tsconfig.json
│ ├── tailwind.config.js
│ ├── index.html
│ ├── .env.example
│ └── .gitignore
├── README.md
├── LICENSE
├── CONTRIBUTING.md
└── .gitignore
- Clone your repository to a new location
- Follow the setup instructions in README.md
- Verify everything works as expected
- Create a test issue and pull request to ensure workflows work
- Star your own repository to make it easy to find
- Add a description and website URL in repository settings
- Enable GitHub Pages if you want to host documentation
- Set up repository notifications for collaborators
- Consider adding a Code of Conduct file
Your professional AccountsPro repository is now ready for development and collaboration! 🚀