Giter Site home page Giter Site logo

hanaburtinnetcore's Introduction

Queenbees

python django python-tests js-tests CodeQL

Queenbees is a CMS with django backend and react front end. It's a personal project I want to use on multiple website projects, so it's definitely over-engineered. I use it also as an experimental project.

Install and run

Prepare your devdesk

Prerequisites

TODO: Update tests to use docker PostgreSQL container

  • PostgreSQL server installed
  • User with CREATEDB permission and access to PostgreSQL socket

Setup PostgreSQL role:

echo "CREATE USER $(whoami) WITH CREATEDB;" | psql -U postgres

Install dependencies

# Install poetry
pip install poetry

# Install NVM and Node
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \
&& source $HOME/.nvm/nvm.sh \
&& nvm install 20.9.0

# Install dependencies
cd src
poetry install
poetry run install-frontend-dependencies --test

Activate virtual environment

poetry shell

Configure local environment

cp src/.env.example src/.env
  • Configure relevant API Keys

Run the server locally

Start the server with docker compose

poetry run docker-start

Stop docker compose

poetry run docker-stop

Run django migrations

poetry run docker-migrate

Full django build

poetry run docker-build

Create super user

poetry run createsuperuser

Useful commands

Linters

All backend linters:

poetry run python-linters

isort: Sort imports

poetry run python-linter-isort

black: Standard python linter

poetry run python-linter-black

import linter: Checks import contracts

poetry run python-import-linter

Typing

poetry run python-type-checker

Frontend linter and type checker:

npm run eslint

Tests

Python tests

Run tests for a specific target

DJANGO_CONFIGURATION=<config> poetry run python-tests <files>

Run all python tests

poetry run python-tests-all

Run unit tests

poetry run python-tests-unit

Run Interface agnostic tests

poetry run python-tests-interface-agnostic

Run backoffice tests

poetry run python-tests-backoffice

Javascript/Typescript tests

poetry run js-tests

hanaburtinnetcore's People

Contributors

hanapoulpe avatar dependabot[bot] avatar github-actions[bot] avatar snyk-bot avatar

Watchers

 avatar

hanaburtinnetcore's Issues

Updateto python 3.12

Is your feature request related to a problem? Please describe.
Python 3.12 is up, upgrade python version

Update dependabot reviewer

Describe the bug
Dependabot reviewer uses deprecated commands, it's required to update those.

To Reproduce
List of alerts are visible here

Expected behavior
All alerts should be resolved

update to django 5

Is your feature request related to a problem? Please describe.
New version of django is release

Detail

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.