Prerequisites
Please follow the steps below to install and set up all required prerequisites:
- PHP ~v8.0
-
Node.js
In order to use the build tools, you will need to download and install Node.js. If you do not already have Node.js installed, you can download the package installer from the official website. Please download the stable LTS version.
Download Node.js -
Composer
Make sure you have the Composer installed & running on your computer. If you already have installed Composer on your computer, you can skip this step.
Download Composer -
Symfony CLI
The Symfony CLI is a developer tool to help you build, run, and manage your Symfony applications directly from your terminal. If you already have installed Composer on your computer, you can skip this step.
Download Symfony CLI
Structure
Once you have completed your purchase, you will receive a zip file containing all the necessary files and folders. When you extract the contents of the zip file, you will find the following files and folders:
├── Symfony │ ├── bin │ ├── config │ ├── migrations │ ├── public │ │ │ ├── css │ │ │ ├── images │ │ │ └── js │ │ └── index.php │ ├── src │ │ └── Controller │ │ └── HomeController.php │ ├── templates │ │ └── partials │ ├── bun.lockb │ ├── composer.json │ ├── composer.lock │ ├── vite.config.js │ ├── package-lock.json │ ├── package.json │ └── yarn.lock
Installation
Follow the steps below to set up and run the project:
You can use one of the following package managers: Bun (recommended for macOS/Linux), Yarn, or NPM.
| Task | Bun | Yarn | NPM |
|---|---|---|---|
| Install globally |
npm i -g bunor sudo npm i -g bun
|
npm i -g yarnor sudo npm i -g yarn
|
NPM comes bundled with Node.js |
| Install dependencies |
bun i
|
yarn
|
npm i
|
| Run development server |
bun dev
|
yarn dev
|
npm run dev
|
| Build for production |
bun run build
|
yarn build
|
npm run build
|
To spin up the Symfony server, follow the below mentioned steps in a separate terminal:
| Command | Description |
|---|---|
composer i |
This will install all required dependencies in
vendor folder.
|
symfony server:start |
Runs the project locally, starts the development server |