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

Create repo #7

Open
Evomatic opened this issue Feb 16, 2024 · 5 comments
Open

Create repo #7

Evomatic opened this issue Feb 16, 2024 · 5 comments
Assignees

Comments

@Evomatic
Copy link
Contributor

Evomatic commented Feb 16, 2024

Setup the basic structure of the application as followed.

nutrient-checker
├── README.md
├── backend
└── frontend
@Evomatic Evomatic self-assigned this Feb 16, 2024
@Evomatic
Copy link
Contributor Author

@tds455 Note: I setup the django (backend) application with pipenv even though we plan to containerize. In case development ever needs to happen outside the container we will at least have another way to guarantee consistent development. Also pipenv should make development a bit more easier since we no longer have to use pip or virtualenv separately. Easier to manager.

@Evomatic
Copy link
Contributor Author

Evomatic commented Feb 16, 2024

Full structure view

nutrient-checker
├── README.md
├── backend
│   ├── Pipfile
│   ├── Pipfile.lock
│   ├── asgi.py
│   ├── backend
│   │   ├── __init__.py
│   │   ├── settings.py
│   │   ├── urls.py
│   │   └── wsgi.py
│   ├── db.sqlite3
│   └── manage.py
└── frontend
    ├── index.html
    ├── jsconfig.json
    ├── package-lock.json
    ├── package.json
    ├── public
    │   └── vite.svg
    ├── src
    │   ├── assets
    │   ├── index.jsx
    │   └── style.css
    └── vite.config.js

@tds455
Copy link
Collaborator

tds455 commented Feb 16, 2024

This is fine - It'll make development much easier if we only containerise when we push to main. Best to just use venv / pipenv for local development.

@tds455
Copy link
Collaborator

tds455 commented Feb 16, 2024

I believe sqlite3 is the default local db for django. We'll need to update manage.py to point towards a local postgres container instead.

@Evomatic
Copy link
Contributor Author

Yeah, we will need to make quite a few configuration adjustments. Of course we won't be relying on sqlite3. It is better to have a dedicated database layer that is separate from the django api/server. By doing so we will reduce any risk of server being loaded. So this is where PostgreSQL container will come in :)

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

2 participants