Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GQL support #45

Open
baseplate-admin opened this issue May 13, 2024 · 7 comments
Open

Add GQL support #45

baseplate-admin opened this issue May 13, 2024 · 7 comments

Comments

@baseplate-admin
Copy link
Owner

apollo-gql

@fedirjh
Copy link

fedirjh commented Dec 5, 2024

@baseplate-admin What's the state of this repository?

@baseplate-admin
Copy link
Owner Author

Hi, Thank you for reaching out.

Our backend has a pr:

After merging that, i will look into this issue :)

@fedirjh
Copy link

fedirjh commented Dec 5, 2024

@baseplate-admin Thanks for the response.

How does the backend work? Tried to run it locally but failed, any guidelines on that?

@baseplate-admin
Copy link
Owner Author

Hi,

How does the backend work? Tried to run it locally but failed, any guidelines on that?

So basically the backend doesn't have a standard deployment strategy ( i am thinking of dockerizing it, but on windows thats a pain )

Install the following

  1. Postgres >= 16
  2. Redis >= 5

Start redis.

Then create the following account in postgres:
username: coreproject
password: supersecretpassword
user: postgres

Follow these commands in order

  1. git clone https://github.com/baseplate-admin/coreproject
  2. cd backend
  3. pipx install poetry
  4. poetry install
  5. poetry run poe sync
  6. poetry run poe dev

If you want everything working you will also need to run celery.

Open another terminal and run

celery -A django_core.core worker -l info --uid=nobody --gid=nogroup

That should give you a debug backend

@fedirjh
Copy link

fedirjh commented Dec 6, 2024

@baseplate-admin Thank you for the guide. I managed to get it working using docker, however, I only got these rest endpoints. is there any admin panel implemented? Also, I am thinking of re-writing the backend ...

Screenshot 2024-12-06 at 1 23 18 PM

@moonlitgrace
Copy link
Collaborator

I only got these rest endpoints. is there any admin panel implemented?

hey @fedirjh, there is an in-build django admin panel at- /admin
and a swagger ui for endpoints at- /api/v2/schema/swagger-ui

@baseplate-admin
Copy link
Owner Author

baseplate-admin commented Dec 6, 2024

Hi @fedirjh, thank you for your input on this

however, I only got these rest endpoints. is there any admin panel implemented?

Yep, please login to https://localhost:8000/admin after creating an account using poetry run python ./django_core/manage.py createsuperuser

Also, I am thinking of re-writing the backend ...

As it stands, coreproject backend is very complex at this time (I think this is more than 2k loc), rewriting would also mean rewriting the underlying tools (some of these tools are django specific) powering the backend like django-ltree-2, modern-colorthief, django-hstore-widget,....

However it is doable given some time. But i gotta ask why did you suggest a rewrite of the backend?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants