Part-DB is an Open source inventory management system for your electronic components
Find a file
2023-02-11 22:29:32 +01:00
.docker Use precompiled PHP extensions for docker container 2023-02-05 18:58:57 +01:00
.github Fixed and improved docker build 2023-02-06 21:34:02 +01:00
assets Set selectOnTab option for tomSelect inputs 2023-02-06 22:59:03 +01:00
bin Updated symfony/phpunit-bridge recipe. 2021-10-02 21:04:31 +02:00
config Upgraded doctrine-bundle recipe 2023-02-11 22:27:51 +01:00
docs Improved upgrade documentation from legacy Part-DB version 2023-02-10 15:10:47 +01:00
migrations Use permissions presets as initial settings for group permissions during migration 2023-01-23 21:46:24 +01:00
public Upgraded recipe of symfony/apache-pack 2023-02-11 22:29:32 +01:00
src Disable username and token field on password reset controller 2023-02-11 22:04:49 +01:00
templates Link to docs.part-db.de 2023-02-09 00:14:36 +01:00
tests Fixed tests. 2023-01-30 23:40:22 +01:00
translations Merge remote-tracking branch 'origin/l10n_master' 2023-02-06 21:03:01 +01:00
uploads Keep uploads/ folder, as an exception is thrown if a user tries to move attachment to secure folder if it is not existing. 2020-05-22 13:05:47 +02:00
.dockerignore Added a guide how to install Part-DB via docker. 2021-03-14 23:44:11 +01:00
.env Added login rate throttling 2023-02-11 21:55:24 +01:00
.env.docker Renamed demo environment to docker 2023-02-04 23:40:24 +01:00
.env.test Use correct database for testing env. 2021-10-02 21:10:31 +02:00
.gitignore Update .gitignore 2023-01-30 13:01:48 +01:00
.php_cs.dist Fixed code style. 2020-01-04 20:24:09 +01:00
.scrutinizer.yml Really fixed .scrutinizer.yml 2019-11-09 14:35:54 +01:00
.yarnclean Updated yarn dependencies... 2019-03-19 15:24:44 +01:00
CODE_OF_CONDUCT.md Added code of conduct. 2019-03-27 16:36:16 +01:00
codecov.yml Allow bigger drops on code coverage. 2020-04-06 18:47:04 +02:00
composer.json Upgraded dependencies. 2023-02-11 22:19:56 +01:00
composer.lock Upgraded dependencies. 2023-02-11 22:19:56 +01:00
CONTRIBUTING.md Update CONTRIBUTING.md 2020-03-06 11:11:32 +01:00
crowdin.yml Update Crowdin configuration file 2023-01-30 16:31:01 +01:00
Dockerfile Increase network timeout for yarn in Dockerfile to prevent timeout errors on cross builds. 2023-02-05 19:31:21 +01:00
ecs.php Apply symplify checkers. 2020-08-21 21:38:31 +02:00
LICENSE Changed license to AGPL3+ 2020-02-22 18:14:36 +01:00
package.json Replaced all occurances of bootstrap-select with tomSelect 2023-02-02 00:36:42 +01:00
phpstan.neon Fixed PHPstan warnings. 2022-03-04 13:22:40 +01:00
phpunit.xml.dist Use PHPunit 9 for unit tests, which can generate coverage at PHP8. 2022-07-23 22:09:02 +02:00
Procfile Revert "Use Opcache preloading on heroku server." 2020-03-31 18:24:35 +02:00
psalm.xml Fixed static analysis issue. 2021-03-14 19:03:52 +01:00
README.md Link to docs.part-db.de 2023-02-09 00:14:36 +01:00
SECURITY.md Added security policy. 2021-10-02 18:22:20 +02:00
symfony.lock Upgraded recipe of symfony/apache-pack 2023-02-11 22:29:32 +01:00
UPGRADE.md Moved all console comands to the partdb: namespace 2022-08-04 21:49:16 +02:00
VERSION We are in development of 1.0.0-beta.2 now 2023-02-06 22:07:47 +01:00
webpack.config.js Use webpack entrypoints for bootstrap and bootswatch themes 2023-02-01 22:58:39 +01:00
yarn.lock Upgraded dependencies. 2023-02-11 22:19:56 +01:00

Scrutinizer Code Quality PHPUnit Tests Static analysis codecov GitHub License PHP Version

Docker Pulls Docker Build Status Crowdin

When updgrading from a version from before 2022-11-27, please read this before upgrading!

Documentation

Part-DB

Part-DB is an Open-Source inventory managment system for your electronic components. It is installed on a web server and so can be accessed with any browser without the need to install additional software.

The version in this Repository is a complete rewrite of the legacy Part-DB (Version < 1.0) based on a modern framework. Currently it is still missing some (less) features from the old version (see UPGRADE.md) for more details, but also many huge improvements and advantages compared to the old version. If you start completly new with Part-DB it is recommended that you use the version from this repository, as it is actively developed.

If you find a bug, please open an Issue on Github so it can be fixed for everybody.

Demo

If you want to test Part-DB without installing it, you can use this Heroku instance. (Or this link for the German Version).

You can log in with username: user and password: user.

Every change to the master branch gets automatically deployed, so it represents the currenct development progress and is maybe not completly stable. Please mind, that the free Heroku instance is used, so it can take some time when loading the page for the first time.

Features

  • Inventory managment of your electronic parts. Each part can be assigned to a category, footprint, manufacturer and multiple store locations and price informations. Parts can be grouped using tags. You can associate various files like datasheets or pictures with the parts.
  • Multi-Language support (currently German, English, Russian, Japanese and French (experimental))
  • Barcodes/Labels generator for parts and storage locations, scan barcodes via webcam using the builtin barcode scanner
  • User system with groups and detailed (fine granular) permissions. Two-factor authentication is supported (Google Authenticator and Webauthn/U2F keys) and can be enforced for groups. Password reset via email can be setuped.
  • Import/Export system (partial working)
  • Project managment: Create projects and assign parts to the bill of material (BOM), to show how often you could build this project and directly withdraw all components needed from DB
  • Event log: Track what changes happens to your inventory, track which user does what. Revert your parts to older versions.
  • Responsive design: You can use Part-DB on your PC, your tablet and your smartphone using the same interface.
  • MySQL and SQLite (experimental) supported as database backends
  • Support for rich text descriptions and comments in parts
  • Support for multiple currencies and automatic update of exchange rates supported
  • Powerful search and filter function, including parametric search (search for parts according to some specifications)

With this features Part-DB is useful to hobbyists, who want to keep track of their private electronic parts inventory, or makerspaces, where many users have should have (controlled) access to the shared inventory.

Part-DB is also used by small companies and universities for managing their inventory.

Requirements

  • A web server (like Apache2 or nginx) that is capable of running Symfony 5, this includes a minimum PHP version of PHP 7.4
  • A MySQL (at least 5.7) /MariaDB (at least 10.2.2) database server if you do not want to use SQLite.
  • Shell access to your server is highly suggested!
  • For building the client side assets yarn and nodejs is needed.

Installation

Caution: It is possible to upgrade the old Part-DB databases. Anyhow, the migrations that will be made, are not compatible with the old Part-DB versions, so you must not use the old Part-DB versions with the new database, or the DB could become corrupted. Also after the migration it is not possible to go back to the old database scheme, so make sure to make a backup of your database beforehand. See UPGRADE for more infos.

Hint: A docker image is available under jbtronics/part-db1. How to setup Part-DB via docker is described here.

Below you find some general hints for installation, see here for a detailed guide how to install Part-DB on Debian/Ubuntu.

  1. Copy or clone this repository into a folder on your server.
  2. Configure your webserver to serve from the public/ folder. See here for additional informations.
  3. Copy the global config file cp .env .env.local and edit .env.local:
    • Change the line APP_ENV=dev to APP_ENV=prod
    • If you do not want to use SQLite, change the value of DATABASE_URL= to your needs (see here) for the format. In bigger instances with concurrent accesses, MySQL is more performant. This can not be changed easily later, so choose wisely.
  4. Install composer dependencies and generate autoload files: composer install -o --no-dev
  5. If you have put Part-DB into a sub-directory on your server (like part-db/), you have to edit the file webpack.config.js and uncomment the lines (remove the // before the lines) .setPublicPath('/part-db/build') (line 43) and .setManifestKeyPrefix('build/') (line 44). You have to replace /part-db with your own path on line 44.
  6. Install client side dependencies and build it: yarn install and yarn build
  7. Optional (speeds up first load): Warmup cache: php bin/console cache:warmup
  8. Upgrade database to new scheme (or create it, when it was empty): php bin/console doctrine:migrations:migrate and follow the instructions given. During the process the password for the admin is user is shown. Copy it. Caution: This steps tamper with your database and could potentially destroy it. So make sure to make a backup of your database.
  9. You can configure Part-DB via config/parameters.yaml. You should check if settings match your expectations, after you installed/upgraded Part-DB. Check if partdb.default_currency matches your mainly used currency (this can not be changed after creating price informations). Run php bin/console cache:clear when you changed something.
  10. Access Part-DB in your browser (under the URL you put it) and login with user admin. Password is the one outputted during DB setup. If you can not remember the password, set a new one with php bin/console app:set-password admin. You can create new users with the admin user and start using Part-DB.

When you want to upgrade to a newer version, then just copy the new files into the folder and repeat the steps 4. to 7.

Normally a random password is generated when the admin user is created during inital database creation, however you can set the inital admin password, by setting the INITIAL_ADMIN_PW env var.

Reverse proxy

If you are using a reverse proxy, you have to ensure that the proxies sets the X-Forwarded-* headers correctly, or you will get HTTP/HTTPS mixup and wrong hostnames. If the reverse proxy is on a different server (or it cannot access Part-DB via localhost) you have to set the TRUSTED_PROXIES env variable to match your reverse proxies IP-address (or IP block). You can do this in your .env.local or (when using docker) in your docker-compose.yml file.

Donate for development

If you want to donate to the Part-DB developer, see the sponsor button in the top bar (next to the repo name). There you will find various methods to support development on a monthly or a one time base.

Built with

Authors

  • Jan Böhmer - Inital work - Github

See also the list of contributors who participated in this project.

Based on the original Part-DB by Christoph Lechner and K. Jacobs

License

Part-DB is licensed under the GNU Affero General Public License v3.0 (or at your opinion any later). This mostly means that you can use Part-DB for whatever you want (even use it commercially) as long as you publish the source code for every change you make under the AGPL, too.

See LICENSE for more informations.