Giter VIP home page Giter VIP logo

development-environment's Introduction

Development container

Standard containers with NGinx, Apache, PHP v8.1, Laravel v8.83.15, Vue 2, MongoDb, MySQL, SQL Server and PostgreSQL.

App Name Port
SQL Server sqlserver 1434
Ubuntu/Nginx nginx 8081
MongoDb mongo 27019
MongoExpress mexpress 8091
MariaDB 10.2 (~MySql 5.7) mydb 3309
PhpMyAdmin myadmin 8089
PgDb pgdb 5439
PgAdmin pgadm 5059

Getting started

Configure SSH for Git

ssh-keygen -t ed25519 -C "[email protected]"

Configure GPG Keys

Check if there is any key

gpg --list-secret-key --keyid-form long

Generate a key if needed

gpg --full-generate-key

Get key id

/home/user/.gnupg/pubring.kbx

sec rsa4096/IDIDIDIDIDIDIDID 2022-01-01 [SC] [expires: 2023-01-01]

Export public key and add key to remote repository settings

gpg --armor --export IDIDIDIDIDIDIDID

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBG ... ... =pdkp -----END PGP PUBLIC KEY BLOCK-----

Set signing key as global

  • git config --global user.signingkey IDIDIDIDIDIDIDID
  • git config --global commit.gpgsign true
  • git config --global tag.gpgsign true

Define TTY in bash file.

Insert the following line in .profile or .bash, according to your OS

export GPG_TTY=$(tty)

Add SSH and GPG Keys to Github

Run containers

docker compose up -d --build

Check if they are running

docker ps

Install Laravel dependencies

docker exec -it lara bash composer install

Install node dependencies inside Laravel container

npm install npm run dev

Set Laravel environment variables

cp .env.example .env php artisan key:generate

Create database schema and populate with data

php artisan migrate php artisan db:seed

User and permission settings

chmod -R 777 storage

After creating files with artisan, run the following command to avoid permission issues

chown -R www-data:1000 .

Vue app

https://www.positronx.io/create-laravel-vue-js-crud-single-page-application/

React

https://techvblogs.com/blog/build-crud-app-with-laravel-and-reactjs

https://blog.codeexpertslearning.com.br/dockerizando-uma-aplica%C3%A7%C3%A3o-react-js-f6a22e93bc5d https://stackoverflow.com/questions/987142/make-gitignore-ignore-everything-except-a-few-files

Mongo

mongosh --username "root" --password password

SQL Server

https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-docker-container-configure?view=sql-server-ver16&pivots=cs1-bash

MacOS

Changelog

Setting up SSH keys

WSL

Setting up environment

Review Docker engine installation steps

https://docs.docker.com/engine/install/ubuntu/

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

wsl --set-default-version 2

Choose your Linux distro from Windows Store

https://github.com/codeedu/wsl2-docker-quickstart https://www.youtube.com/watch?v=rdp7xwziQtU https://github.com/argentinaluiz/my-vscode-settings https://github.com/argentinaluiz/ambiente-dev-produtivo

Troubleshooting

https://pureinfotech.com/uninstall-wsl2-windows-10/

development-environment's People

Contributors

gezielcarvalho avatar

Stargazers

Luis Gomes avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.