All Projects → Part-DB → Part-DB-symfony

Part-DB / Part-DB-symfony

Licence: AGPL-3.0 license
[WIP] A new Part-DB experience based on Symfony framework

Programming Languages

PHP
23972 projects - #3 most used programming language
Twig
543 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to Part-DB-symfony

Part-DB
Open Source Electronic Parts Database using PHP and MySQL
Stars: ✭ 143 (+19.17%)
Mutual labels:  managment, electronics, part-db
librarify-back
Librarify. Creando una API con Symfony 5 es un curso completo sobre Symfony 5 en el que cuento cómo desarrollar una API desde cero empleando FOS Rest Bundle.
Stars: ✭ 30 (-75%)
Mutual labels:  symfony-application, symfony5
PolyTuna
A polyphonic tuner pedal
Stars: ✭ 17 (-85.83%)
Mutual labels:  electronics
1clickBOM
A browser extension to quickly fill shopping carts with electronic components.
Stars: ✭ 76 (-36.67%)
Mutual labels:  electronics
chpc
CHPC: Cheap Heat Pump Controller
Stars: ✭ 27 (-77.5%)
Mutual labels:  electronics
f43.me
A more readable & cleaner feed
Stars: ✭ 60 (-50%)
Mutual labels:  symfony-application
sensor
Sensor by Metriful | Indoor environment monitoring | Documentation and code samples
Stars: ✭ 93 (-22.5%)
Mutual labels:  electronics
awesome-electronic-engineering
Awesome Electronic Engineering
Stars: ✭ 54 (-55%)
Mutual labels:  electronics
rothenberg
Rothenberg allows a developer to create or maintain a Symfony application or bundle very easily and without installing anything on his workstation.
Stars: ✭ 25 (-79.17%)
Mutual labels:  symfony-application
SmartSpin2k
Transform your spin bike into a Smart Trainer!
Stars: ✭ 88 (-26.67%)
Mutual labels:  electronics
gopio
Raspberry pi GPIO controller package(CGO)
Stars: ✭ 14 (-88.33%)
Mutual labels:  electronics
omega-dock-new
A dock for Onion omega, omega2 and omega2+. It features: Microusb for power supply, USB host, Ethernet
Stars: ✭ 36 (-70%)
Mutual labels:  electronics
SpiceSharp
Spice# is a cross-platform electronic circuit simulator based on Berkeley Spice - the mother of commercial industry-standard circuit simulators.
Stars: ✭ 146 (+21.67%)
Mutual labels:  electronics
deneyapkart-arduino-core
Arduino Core for Deneyap DevKits
Stars: ✭ 39 (-67.5%)
Mutual labels:  electronics
symfony-realworld-example-app
Symfony 5 codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
Stars: ✭ 89 (-25.83%)
Mutual labels:  symfony-application
Simulacra
Simple and Ideal Circuit Simulation
Stars: ✭ 12 (-90%)
Mutual labels:  electronics
opensalt
Standards Alignment Tool
Stars: ✭ 39 (-67.5%)
Mutual labels:  symfony-application
bzion
A League Management System designed for BZFlag leagues and tournaments.
Stars: ✭ 20 (-83.33%)
Mutual labels:  symfony-application
nestronic
Nestronic Game Music Synthesizer Alarm Clock
Stars: ✭ 24 (-80%)
Mutual labels:  electronics
UliEngineering
A python library for calculations perfomed in electronics engineering
Stars: ✭ 35 (-70.83%)
Mutual labels:  electronics

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

Docker Pulls Docker Build Status Crowdin

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. In the moment it lacks some features from the old Part-DB and the testing and documentation is not finished. Part-DB is in undergoing development, that means features and appeareance can change, and the software can contain bugs.

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

As this version of Part-DB is under development, some of the features listed below is not existing yet and the list of the features could change in the future. Features that are not working yet are marked with a star (*).

  • 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. Support for file attachments like datasheets.
  • Multi-Language support (currently German, English, Russian, Japanese and French (experimental))
  • Barcodes/Labels generator for parts and storage locations
  • User system with groups and detailed permissions. Two-factor authentication is supported (Google Authenticator and U2F keys) and can be enforced. Password reset via email can be setuped.
  • Import/Export system (*)
  • Project managment: Parts can be assigned to projects to manage how often a project can be build. (*)
  • Order managment: Collect parts that should be ordered during the next order on your distributor and automatically add it to your instock, when they arrive. (*)
  • 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.
  • PartKeepr import (*)
  • MySQL and SQLite (experimental) supported as database backends

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.3
  • A MySQL (at least 5.6.5) /MariaDB (at least 10.0.1) 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 installtion, 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.

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.

Useful console commands

Part-DB provides some command consoles which can be invoked by php bin/console [command]. You can get help for every command with the parameter --help. Useful commands are:

  • php bin/console partdb:users:set-password [username]: Sets a new password for the user with the given username. Useful if you forget the password to your Part-DB instance.

  • php bin/console partdb:logs:show: Show last activty log on console. Use -x options, to include extra column.

  • php bin/console partdb:currencies:update-exchange-rates: Update the exchange rates of your currencies from internet. Setup this to be run in a cronjob to always get up-to-date exchange rates. If you dont use Euro as base currency, you have to setup an fixer.io API key in .env.local.

  • php bin/console partdb:attachments:clean-unused: Removes all unused files (files without an associated attachment) in attachments folder. Normally Part-DB should be able to delete the attachment file, if you delete the attachment, but if you have some obsolete files left over from legacy Part-DB you can remove them safely with this command.

  • php bin/console partdb:check-requirements: Checks if the required dependencies are installed and gives you recommendations for optimization

  • php bin/console cache:clear: Remove and rebuild all caches. If you encounter some weird issues in Part-DB, it maybe helps to run this command.

  • php bin/console doctrine:migrations:up-to-date: Check if your database is up to date.

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

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].