Menu

Tree [d0348d] v1.main v1.24.00 /
 History

HTTPS access


File Date Author Commit
 app 1 day ago musef musef [d0348d] v1.24.00 testing MemberRepository
 bootstrap 2024-08-26 musef musef [488667] v1.main initial commit
 config 2024-08-28 musef musef [0b6287] v1.02.00 adding spanish lang translations
 database 2024-09-02 musef musef [58e009] v1.01.01 changes and improving migrations and t...
 lang 2024-08-28 musef musef [0b6287] v1.02.00 adding spanish lang translations
 public 2024-08-26 musef musef [488667] v1.main initial commit
 resources 3 days ago musef musef [d24fc5] v1.25.00 testing UpdateGroupController
 routes 1 day ago musef musef [d0348d] v1.24.00 testing MemberRepository
 storage 2024-08-26 musef musef [488667] v1.main initial commit
 tests 1 day ago musef musef [d0348d] v1.24.00 testing MemberRepository
 .env 2024-10-14 musef musef [4c6dcb] v1.20.00 general improvement of screen designs
 .env.testing 3 days ago musef musef [bdc3c8] v1.25.00 testing GroupController
 .eslintrc 2024-08-30 musef musef [6a3a34] v1.main adding eslint config
 .gitattributes 2024-08-26 musef musef [488667] v1.main initial commit
 .gitignore 2024-08-31 musef musef [499e80] v1.06.00 new design AppWelcome page
 COPYING.md 2024-08-26 musef musef [488667] v1.main initial commit
 Dockerfile 2024-08-26 musef musef [488667] v1.main initial commit
 README.md 2024-08-26 musef musef [488667] v1.main initial commit
 README_INSTALLATION.md 2024-10-17 musef musef [2852f2] v1.main production: installation changes
 artisan 2024-08-26 musef musef [488667] v1.main initial commit
 composer.json 2024-08-26 musef musef [488667] v1.main initial commit
 docker-compose.yml 2024-08-26 musef musef [488667] v1.main initial commit
 eslint.config.js 2024-08-30 musef musef [6a3a34] v1.main adding eslint config
 package.json 2024-09-22 musef musef [d1d3b4] v1.main adding DaisyUi library and configuration
 phpunit.xml 2024-08-26 musef musef [488667] v1.main initial commit
 postcss.config.js 2024-08-26 musef musef [488667] v1.main initial commit
 tailwind.config.js 2024-09-22 musef musef [d1d3b4] v1.main adding DaisyUi library and configuration
 tsconfig.json 2024-08-26 musef musef [488667] v1.main initial commit
 vite.config.js 2024-10-17 musef musef [2852f2] v1.main production: installation changes

Read Me

fms-chat APP

fms-chat is an application for chatting between registered users.

V3

  • App build with Laravel - Inertia - Vue
  • Laravel 11
  • PHP 8.3
  • Mariadb 11.5
  • Node 20
  • Vite 5
  • Vue 3.4
  • Tailwind 3.2

Production branch

  • Select v1.latest branch to get the complete productive code.

Docker project - working with the code

This project is build with docker, then you need to create an docker environment an use this docker-compose.yml.

  • Dockerfile builds the laravel version 11 application core, with php8.3 (image in docker hub)
  • docker-compose.yml builds the environment, including mariadb, phpmyadmin, and mailpit.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

  • DB_CONNECTION=mariadb
  • DB_HOST=fms-chat-mariadb NOTE: this is the service's name in docker-compose
  • DB_PORT=3306
  • DB_DATABASE=fmschat
  • FORWARD_DB_PORT=3307
  • DB_USERNAME=Us3rname_t0_d3v3l0p change this for production!
  • DB_PASSWORD=Passw0rd_t0_d3v3l0p change this for production!
  • DB_ROOT_PASSWORD=Passw0rd_t0_r00t change this for production!

  • APP_ENV=local or APP_ENV=production

  • APP_DEBUG=true or APP_DEBUG=false (production)
  • APP_URL=http://localhost or APP_URL=http://your_production_url.xxx

  • Additional mailpit configuration required.

Installation for develop

1.- Create the project automatically using the laravel build: curl -s "https://laravel.build/your_project_name?with=mariadb,mailpit" | bash

2.- Then, the frontend part must be prepared with breeze-inertia: composer require laravel/breeze –dev

3.- Then we must install laravel breeze php artisan breeze:install
- Answer “Inertia-Vue” to the question of which front end you want to install.
- Answer “Typescript” to the question for additional installation.

4.- Then, launch the ./vendor/bin/sail up -d to build the project, generating the containers to work with.

5.- At this point we have the skeleton of the project. We must verify if we have connection with the database:
- Try to connect using phpmyadmin, in the configured url: http://localhost:8080
- The user must be the value of DB_USERNAME defined in .env, and the password must be DB_PASSWORD value.
- Remember that the DB_HOST must be the name of the service defined in docker-compose.yml, in this case fms-chat-mariadb. If the database manager asks for the host, you must enter this value.

6.- Enter inside the php container with: docker container exec -it fms-chat-php /bin/bash

7.- Inside the container, run the breeze migration installation to install the user tables in the database: php artisan migrate

8 - Inside the container, install the project with npm install (usually it will say that everything or almost everything is up to date)

9.- And finally, inside the container, to run the application npm run dev

If a port conflict occurs, the conflicting ports should preferably be changed in the .env file (APP_PORT, VITE_PORT, PHPMYADMIN_PORT)

License

GNU GPLv3 - COPYING.md

Author