- Требования к окружению:
- Docker
- Docker Compose
- Инструкция по развертыванию:
git clone [email protected]:patric-chuzhbe/url-shorter-rest-docker.git
cd url-shorter-rest-docker
cp .env.example .env
- В "docker-compose.yml" можно при необходимости задать собственные значения для элементов:
services.app.container_name
services.app.volumes[1]
volumes.db-data-url-shorter-app-rest-docker
(имеется ввиду само имя тома для постоянного хранилища состояния БД)
docker-compose up --build
- После сборки и запуска контейнера, открыть еще одну консоль в директории проекта:
sudo docker exec -it url-shorter-app-rest-docker bash
php artisan migrate
- В проекте ассеты скомпилированы. При необходимости, можно:
- Установить Node.js на хост ОС (проект разрабатывался и тестировался на версии 18.16)
- Выполнить в консоли в директории проекта:
npm i
npm run watch
- вотчер для интерактивной разработки
- В браузере открыть URL http://localhost/
- При необходимости,можно подключиться к БД проекта по следующим реквизитам:
HOST=127.0.0.1
PORT=3306
DATABASE=url_shorter
USERNAME=alt_root
PASSWORD=12345
url-shorter-rest-docker's Introduction
url-shorter-rest-docker's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.