Web application to manage items inventory, loans and more.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
This project is developed on a AMP server with PHP 8.1 and MariaDB 10.4. It is based on the CodeIgniter 4.x framework.
- Download our latest release
- Unzip your download in your project's directory (in your local PHP server)
- Run "composer install" to download required packages (you have to install composer at first, you can get it here)
- Create a copy of the "env_dist" file and rename it to .env, then adapt it to your server's parameters
FOR EXAMPLE
[...]
CI_ENVIRONMENT = development
[...]
app.baseURL = 'http://localhost/stock/public/'
[...]
database.default.hostname = localhost
database.default.database = stock
database.default.username = root
database.default.password =
database.default.DBDriver = MySQLi
[...]
- Generate a local database running CodeIgniter's spark migrate commands
php spark migrate -n Stock
php spark migrate -n User
This upgrade makes lot of changes as the application is adapted to new CodeIgniter 4.x. Please follow carefully these steps and try it in a test environment before.
- BE SURE TO HAVE A COMPLETE BACKUP OF YOUR APPLICATION (DATABASE AND FILES)
- With FTP connexion, remove all files and folder from the hosting server, except for the "uploads" folder
- With FTP connexion, upload all the content of Version 4.0 release to the hosting server
- Move the "uploads" folder from root to "public" folder
- Rename the .env_dist file to .env and adapt its content to your hosting environment
- Delete the orif/stock/Database/Migrations/restore_CI3_version folder
- Browse to APPLICATION_URL/stock/migrate/toCI4
- Enter the password that you can find in orif/stock/Controllers/Migrate.php (line 49) and validate
- Delete the file orif/stock/Controllers/Migrate.php
- Delete the folder orif/stock/Views/migration
- Browse to the application and connect with an administrator account
- Browse to APPLICATION_URL/clean_images/index
- Click on "Yes" to execute the script which will clean up the items images
- Delete the file orif/stock/Controllers/Clean_images.php
- Delete the folder orif/stock/Views/admin/clean_images
- Delete the folder orif/stock/Commands
- VERIFY THAT ALL THE APPLICATION WORKS WELL
- CodeIgniter 4.x - PHP framework
- Bootstrap - Design library with personalized css
- Orif, domaine informatique - Initiating and following the project - GitHub account
See also the list of contributors who participated in this project.