Code Monkey home page Code Monkey logo

cookiecutter-react-django's People

Contributors

aemonm avatar dependabot[bot] avatar ohduran avatar pyup-bot avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cookiecutter-react-django's Issues

Install styled-components

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

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Update dependency jest-environment-jsdom-sixteen to v2
  • Update dependency react-scripts to v5
  • Update dependency typescript to v5
  • Update github/codeql-action action to v3
  • Update react monorepo to v18 (major) (react, react-dom)
  • Update testing-library monorepo (major) (@testing-library/jest-dom, @testing-library/react, @testing-library/user-event)

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
{{cookiecutter.project_slug}}/docker-compose.yml
dockerfile
{{cookiecutter.project_slug}}/Dockerfile
{{cookiecutter.project_slug}}/backend/Dockerfile
{{cookiecutter.project_slug}}/frontend/Dockerfile
github-actions
.github/workflows/codeql-analysis.yml
  • actions/checkout v2
  • github/codeql-action v1
  • github/codeql-action v1
  • github/codeql-action v1
npm
{{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
pip_requirements
docs/requirements.txt
  • Sphinx ==5.3.0

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

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

Update frontend testing

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

Frontend exits on docker-compose up

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:

  1. Run the cookiecutter
  2. Run $ 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):

  • OS: MacOS
  • Version 11.5.2
  • Apple M1

Additional context
npm i npm start works just fine, but can't connect to the backend because the settings seem to be expecting docker.

As a developer I want the npm dependencies reviewed

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.

Testing Errors

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:

  1. Run test using docker-compose run --rm django pytest
  2. See error

Expected behavior
Expected behavior is that that the tests run and a test report shows up on cli

Screenshots
Screenshot 2024-05-20 at 6 28 54 PM

Desktop (please complete the following information):

  • OS: Ventura 13.6.6

Additional context
Add any other context about the problem here.

Add async functionality to backend (Django 3.0+)

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.