Starting a new project

Verze:

04. 04. 2022

Zodpovědná osoba:

Dominik Šlechta

Create a repository in the web group via gitlab, if not already created, this way:
 
We clone this empty repository via git (only .git is downloaded) and put all files from the demoweb project (nette 3.0) except .git (repository data), node modules, or idea (generated by phpstorm) into the project folder.
In gitlab-ci.yml, change the PROJECT_NAME value to the project name (this file will load the folder and subdomain - projectname.czechdevelo.cz) and make sure that DEVELOP_DIR is set to czechdevelo.cz (if we're taking it from the demo, it is).
In the config neon we delete the data to the database from the demo in the new project, or replace it with the data for the project.
Copy config.neon.local (or create and paste the code below) and create a database for the project on localhost, if it is brand new, upload the demo.sql file.
 
database:
   dsn: 'mysql:host=127.0.0.1;dbname=projectdatabasename'
   user: root
   password: root

tracy:
    bar:
        - Nextras\MailPanel\MailPanel(%tempDir%/mail-panel-latte)

services:
    nette.mailer: Nextras\MailPanel\FileMailer(%tempDir%/mail-panel-mails)