Development
Installation for development or testing purpose only¶
⚠️ Use this method for development only. ⚠️
You will need:
- Composer ;
- Symfony-cli tool ;
- docker and docker-compose
- node > 20 and yarn 1.22
First initialization¶
-
clone the repository and move to the cloned directory:
-
install dependencies using composer
-
Install and compile assets:
note double-check that you have the node version > 20 using the
node --versioncommand. -
Configure your project: create a
.env.localfile at the root, and add the admin password:note for this installation mode, the environment should always be "dev"
note: if you copy-paste the line above, the password will be "admin". -
Start the stack using
docker compose up -d, check the status of the start withdocker compose ps -
Configure all the necessary third-party tools. On the first start, it may last a bit longer. You can always check with
docker compose ps -
Add some fixtures
This will truncate all the existing data of the database. But remember, we are in dev mode!
-
launch symfony dev-server
And visit the web page it suggests. You can log in with user
center a_social and password password, or login admin with
the password you set.
Stopping the server¶
symfony server:stop
Restart the webserver for a later start¶
symfony server:start -d
# this will automatically start the full docker compose services