A simple boilerplate to quickstart a new Django/React project.
To setup the project you need to have Poetry installed.
- Go to the directory you want to start your project in.
- Start your project using
django-admin startproject <project_name> --extension py,json --name pyproject.toml --template=https://github.com/marcusgabrields/django-boilerplate/archive/realise.zip
- Navigate to the project's directory.
- install dependencies:
- configure
pyproject.toml
file with your project's particulars. - run
poetry check
for check for any error. - run
poetry install
to install dependencies.
- configure
- start backend server:
- run
make migrations
to make migrations of users. - run
make migrate
to apply the migrations. - run
make run
to start the backend server.
- run
- open another terminal tab.
- install dependencies:
- run
npm install
if using npm. - run
yarn
if using Yarn.
- run
- start fronend server:
- run
npm run dev
if using npm. - run
yarn dev
if using Yarn.
- run
- build the project:
- run
npm run prod
if using npm. - run
yarn prod
if using Yarn.
- run
at the end access http://127.0.0.1:8000/
- Separete backend's settings files (base, prod, local)
- CI/CD pipelines
- Deploy in the main services (AWS, Google, Heroku, DigitalOcean)
- Static check (Linters)