- install docker
- install docker-compose
- install make
- install pnpm
- Copy
.env.example
file and rename it to.env
. - Open the terminal and go to
/etc
folder. Typesudo nano hosts
. In opened file provide two host names for 127.0.0.1 ip address:
127.0.0.1 helloworld.dev.gg
- dev
127.0.0.1 helloworld.gg
- prod (you can replace with your production url)
(For windows:C:\Windows\System32\drivers\etc\hosts
)
Save the file. - Run
make install
to install packages. - Run
make up-prod
to create and start a production build (helloworld.gg
). - Run
make up
to start in dev mode (helloworld.dev.gg
).
NOTE
nginx/nginx.conf
file by default can't access to environment variables. So, if you change something in .env
file make sure to update nginx.conf
and nginx.dev.conf
accordingly.
Install all required modules
Create and start a production build
Start in development mode
Stop all running containers without removing them
Start all existing containers
Stop containers and remove containers, networks, volumes, and images created by 'up-prod' or 'up'
Run linter for client
Run linter for server
Run linters for client & server
NOTE
Take a look at .vscode/settings.json
file if you using Visual Studio Code editor. You should provide "eslint.workingDirectories"
setting with all inner project folders that using eslint because by default eslint looking to the root folder.