ohduran / cookiecutter-react-django Goto Github PK
View Code? Open in Web Editor NEWFrom hello world to Heroku deployment, using separated Front and Back Ends
License: MIT License
From hello world to Heroku deployment, using separated Front and Back Ends
License: MIT License
Is your feature request related to a problem? Please describe.
Add the ability to use styled components by default
Describe the solution you'd like
npm install --save styled-components inside the react container so that package.json
reflects the changes
Multi-stage builds allow for optimising Dockerfiles while keeping them easy to read and maintain. Check out Docker docs on it.
See also this on the specific case of create-react-app.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
react
, react-dom
)@testing-library/jest-dom
, @testing-library/react
, @testing-library/user-event
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@testing-library/jest-dom
, @testing-library/user-event
){{cookiecutter.project_slug}}/docker-compose.yml
{{cookiecutter.project_slug}}/Dockerfile
{{cookiecutter.project_slug}}/backend/Dockerfile
{{cookiecutter.project_slug}}/frontend/Dockerfile
.github/workflows/codeql-analysis.yml
actions/checkout v2
github/codeql-action v1
github/codeql-action v1
github/codeql-action v1
{{cookiecutter.project_slug}}/frontend/package.json
axios 0.21.2
@testing-library/react 11.2.7
@testing-library/jest-dom 5.12.0
@testing-library/user-event 13.1.9
dotenv 10.0.0
eslint-config-react-app 6.0.0
eslint-plugin-flowtype 5.7.2
react 17.0.2
react-dom 17.0.2
react-scripts 3.4.4
typescript 4.2.4
jest-environment-jsdom-sixteen 1.0.3
docs/requirements.txt
Sphinx ==5.3.0
Have a look at the Sphinx tutorial on how to start the documentation for this project.
Webhooks have been created for this project, so the scope for this task is creating the actual files.
Instead of relying on Heroku, why not setting up something as simple that leverages the Docker configuration and reduce costs?
Incorporate CapRover as an option (https://caprover.com/) for app deployment.
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
File: renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error: expecting String near ], assig
Check out this PR from @renovate-bot . Tests are failing in the new version of @testing-library/react!
A couple of things in the way the app is tested should change so that the tests can pass using the newest version of @testing-library/react
I'm sick of Travis CI blocking the whole operation because I ran out of their credits. Let's move to Github Actions and make this project self-adjusting again.
Although Travis is already set up, it's running only on the version of Python, Node, Django and React defined by the Dockerfiles. As a developer, I want, as many other projects do—such as Django Rest Framework— to run the tests on more than one combination of Python, Node, Django and React versions.
It would be a good idea to start by reading Tox documentation.
I get the following error when I do docker-compose up --build
with no image preloaded on Docker.
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './plugin-bugfixes' is not defined by "exports" in /app/node_modules/@babel/compat-data/package.json
Describe the bug
I'm trying to get set up with this awesome cookiecutter on MacOS on an M1 MacBook. The frontend fails to start.
To Reproduce
Steps to reproduce the behavior:
$ docker-compose up
Expected behavior
Both containers start.
Screenshots
Here's the terminal output from after I run docker-compose up
Starting project_name_django_1 ... done
Starting project_name_react_1 ... done
Attaching to project_name_django_1, project_name_react_1
django_1 | Watching for file changes with StatReloader
django_1 | Performing system checks...
django_1 |
django_1 | System check identified no issues (0 silenced).
django_1 | August 20, 2021 - 15:29:12
django_1 | Django version 4.0, using settings 'backend.settings.development'
django_1 | Starting development server at http://0.0.0.0:8000/
django_1 | Quit the server with CONTROL-C.
react_1 |
react_1 | > [email protected] start
react_1 | > react-scripts start
react_1 |
react_1 | ℹ 「wds」: Project is running at http://172.18.0.3/
react_1 | ℹ 「wds」: webpack output is served from
react_1 | ℹ 「wds」: Content not from webpack is served from /app/public
react_1 | ℹ 「wds」: 404s will fallback to /
react_1 | Starting the development server...
react_1 |
project_name_react_1 exited with code 0
Desktop (please complete the following information):
Additional context
npm i
npm start
works just fine, but can't connect to the backend because the settings seem to be expecting docker.
Is there anything that we might find useful from this link: https://mattsegal.dev/django-react.html
Make sure that the dependencies in React are up to date, and no unnecessary libraries are installed.
The following warnings are shown when doing docker-compose build --no-cache react
:
npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: use String.prototype.padStart()
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
Describe the bug
Everytime I try to run tests either from inside the django container or from outside (invoking docker-compose command) I always get an error
To Reproduce
Steps to reproduce the behavior:
docker-compose run --rm django pytest
Expected behavior
Expected behavior is that that the tests run and a test report shows up on cli
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Description
Django now allows for async functionalities, and the project is unfortunately in need for configuration to do just that.
Possible solution
A good starting point is this article from @suda.
Alternatives
There are two options that might be on the table:
a) Just move into this configuration by default, and drop support for Django 2 and lower.
b) Cookiecutter allows for the user to decide whether to use it or not in the cookiecutter.json
Mi own preferences lean to the a) side given that a cookiecutter allows for jumpstart a new project from scratch, and it should look into the future, and not to the past.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.