dahalsaur / url_shortener

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URL Shortener

A Simple URL Shortener app using Symfony and React.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Docker

Installing

  1. Build and run docker
docker-compose up -d --build
  1. Open bash from php container and install composer packages
docker-compose exec php /bin/bash

composer install
  1. Copy .env to .env.local
cp .env .env.local
  1. Run migrations
php bin/console doctrine:migrations:migrate

php bin/console doctrine:migrations:migrate (Update(quick fix): Please run this command again to migrate LinkVisit table)
  1. Install yarn packages and compile assets
yarn install

yarn encore dev

Running the app

Visit http://localhost:8080

About


Languages

Language:PHP 65.3%Language:JavaScript 23.3%Language:Shell 5.4%Language:Dockerfile 3.6%Language:Twig 2.3%Language:CSS 0.1%