See the backend folder for more info about the DB.
codinggarden / inventory-app Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
See the backend folder for more info about the DB.
So on line 7 from the docker-compose file it says: - ./docker-data/db-data:/var/lib/postgresql/data
This works fine on my Mac but does not on Windows.
It complains about chmod (probably because docker is a different user?)
It is not something new perse (see docker-library/postgres#435) and there are many other issue's on git about it.
Being new myself to Docker i tried some stuff but i could not figure it out.
I hope you could tell me how to achieve the same on Windows so I could follow.
I have a windows 10 Home edition, I know you might say that it doesn’t work on windows 10 Home but it does indeed. You just have to get the Windows 10 Home Version 2004 and it will work! I have tried it and it works without volumes but when I map volumes it starts complaining about chmod thing! 💔
Hope you can help me, and I don’t have a Mac in hand to work on so my only choice is have it work on windows. 💔
So on line 7 from the docker-compose
file it says: - ./docker-data/db-data:/var/lib/postgresql/data
This works fine on my Mac but does not on Windows.
It complains about chmod (probabaly because docker is a different user?)
It is not something new perse (see docker-library/postgres#435) and there are many other issue's on git about it.
Being new myself to Docker i tried some stuff but i could not figure it out.
I hope you could tell me how to achieve the same on Windows so i could follow on my Desktop (and not laptop)
When running npm run test
or npx jest
I receive the following complaint:
Jest did not exit one second after the test run has completed.
This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
When adding the --detectOpenHandles
flag, the command never finishes after the tests conclude.
So I'm following along what CJ did in the stream ,
i set up the docker-compose and .env as shown , but when running docker-compose up it says this
The POSTGRES_PASSWORD variable is not set. Defaulting to a blank string.
The POSTGRES_USER variable is not set. Defaulting to a blank string.
The POSTGRES_DB variable is not set. Defaulting to a blank string.
I think we want to filter item_info
on deleted_at
column. I think we don't want to list the deleted item infos.
When emptying the database's data on seeding, the table names are be gotten by the object key.
When emptying the database's data on seeding, the table names should be gotten by the object value instead of the object key. Otherwise, if the value is changed there will not be any changes and the table names will be the same despite the value.
Replace line 13 of the file with the path backend/db/seeds/00_initial.js
from
Object.keys(tableNames).map((name) => knex(name).del())
to
Object.values(tableNames).map((table) => knex(table).del())
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.