Acquati / alabamaot-npccreator

Site do Alabama Open Tibia Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPC Creator - Alabama Open Tibia Server

Criador de NPC para o Forgotten Server. Ele pega o arquivo map-spawn.otbm, gera a lista de monstros e o NPC que compra os loots do mapa, com o nome dos itens, seus respectivos id e preços do Tibia Wiki.

alt text

Instalação

  1. Clone do projeto
git clone --recurse-submodules https://github.com/Acquati/alabamaot-npccreator
  1. Criando o .env do Laravel
  • Áreas que precisam ser configuradas:
APP_URL=http://localhost:8082
DB_CONNECTION=pgsql
DB_HOST=172.17.0.1
DB_PORT=5432
DB_DATABASE=alabamanpc
DB_USERNAME=default
DB_PASSWORD=secret
  1. Criando o .env do Laradock
  • Áreas que precisam ser configuradas:
# Data Path
Choose storage path on your machine. For all storage systems.
DATA_SAVE_PATH=~/.laradock/alabamanpc
# PHP_FPM
PHP_FPM_INSTALL_PGSQL=true
# NGINX
NGINX_HOST_HTTP_PORT=8082
NGINX_HOST_HTTPS_PORT=443
NGINX_HOST_LOG_PATH=./logs/nginx/
NGINX_SITES_PATH=./nginx/sites/
NGINX_PHP_UPSTREAM_CONTAINER=php-fpm
NGINX_PHP_UPSTREAM_PORT=9000
# POSTGRES
POSTGRES_DB=alabamanpc
POSTGRES_USER=default
POSTGRES_PASSWORD=secret
POSTGRES_PORT=5432
  1. Comandos pasta Laradock
cd laradock
docker-compose up -d nginx php-fpm postgres
docker-compose exec --user=laradock workspace composer install
docker-compose exec --user=laradock workspace php artisan key:generate
  1. Migrate do DB
docker-compose exec --user=laradock workspace php artisan migrate
  • Como criar o DB Manualmente caso de erro na migrate:
docker-compose exec postgres createdb -U default alabamaotsite
docker-compose exec --user=laradock workspace php artisan migrate
  1. NPM
npm install
  • Caso de erro no pngquant
sudo apt-get install libpng-dev
npm install -g pngquant-bin
  1. Instalação dos módulos
npm install bootstrap
npm install popper
npm install holderjs
npm run dev

Passos da criação de um Projeto Laravel 5.6 com Laradock 7

  1. Laravel 5.6
git clone --recurse-submodules https://github.com/laravel/laravel.git alabamaot-site
cd alabamaot-site
  1. Remoção do .git do laravel
rm -rf .git
  1. Adicionando repositório no GitHub
git init
git add .
git commit -m "Adicionando Laravel 5.6"
git remote add origin https://github.com/Acquati/alabamaot-site.git
ggpull
git push -u origin master
  1. Adicionando .gitignore
git add .
git commit -m "Adicionando .gitignore"
ggpush
  1. Laradock
git submodule add https://github.com/laradock/laradock.git
cd laradock
git add .
git commit -m "Adicionando o Laradock"
ggpush
  1. Model, Controller e Table
docker-compose exec --user=laradock workspace php artisan make:model Npc -mcr

Um pouco sobre Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects.

Aprendendo Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework, making it a breeze to get started learning the framework.

If you're not in the mood to read, Laracasts contains over 1100 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.

About

Site do Alabama Open Tibia Server

License:GNU General Public License v3.0


Languages

Language:PHP 94.5%Language:HTML 4.9%Language:Vue 0.7%