All Templates / Starters

Symfony

Symfony

Simple starter for a Symfony application, fully configured for deployment

Deploy Symfony

railway-symfony-webapp-starter

francis-Paul-code/railway-symfony-webapp-starter

Just deployed

Postgres

railwayapp-templates/postgres-ssl:latest

Just deployed

/var/lib/postgresql/data

Ionic Icon

Symfony Starter Project

Welcome to the Symfony Starter Project! This repository provides a boilerplate for a Symfony application, fully configured for deployment on Railway.

Features

  • Symfony 6.x: The latest version of the Symfony framework.
  • Dockerized Setup: Pre-configured Docker support for local development.
  • Railway Deployment: Ready to be deployed on Railway with minimal configuration.
  • Environment Configuration: Seamless integration with environment variables for production readiness.

Prerequisites

  • Docker: Ensure you have Docker installed on your machine for local development.
  • Railway CLI: Install the Railway CLI for deploying your project to Railway.

Getting Started

1. Clone the Repository

git clone https://github.com/francis-Paul-code/railway-symfony-webapp-starter.git
cd railway-symfony-webapp-starter

2. Set Up Environment Variables

Create a .env file in the root of your project or copy the existing .env.example:

cp .env.example .env

Update the .env file with your database credentials and other necessary configurations.

3. Build and Run the Project

Use Docker to build and run the project locally:

docker-compose up --build

Your Symfony application should now be running on http://localhost:8000.

4. Deploy to Railway

To deploy the project to Railway, follow these steps:

  1. Initialize a new Railway project:
railway init
  1. Deploy your project:
railway up

Railway will automatically detect your environment variables and configuration. Your application will be deployed and accessible at a generated Railway URL.

Contributing

Feel free to contribute to this project by submitting issues or pull requests. We welcome all improvements!

License

This project is licensed under the MIT License.


Deploy Now

Details

Francis Paul Musango's Projects

Created on Aug 11, 2024

23 total projects

11 active projects

56% success on recent deploys

PHP, JavaScript, Twig, CSS

Starters



More templates in this category

View Template
mellow-vue

mellow-vue

A full-stack Vue app with The Boring JavaScript Stack.


My Workspace

View Template
.NET8 Web API

.NET8 Web API

A basic ASP.NET Core Web API template (.NET 8)


Dango

View Template
Django Monolith

Django Monolith

A Django app connected to a Postgres database with Celery and Celery Beat.


Odogwu Machalla's Projects