We generally use battle-tested-and-proven Web frameworks to build applications. However, not all frameworks provide a standardized project structure. For the latter, refer to the general conventions to structure a project.
Refer to the following existing guides and project templates for the main Web frameworks we use:
For other frameworks, refer to the official documentation and follow the community guidelines.
The following structure and directories must be followed unless specified otherwise by a framework:
project-name-web ├─ config/ ├─ lib/ │ ├─ controllers/ │ ├─ decorators/ │ ├─ forms/ │ ├─ helpers/ │ ├─ models/ │ ├─ presenters/ │ ├─ repositories/ │ ├─ serializers/ │ ├─ services/ │ └─ views/ ├─ tests/ ├─ .env ├─ .env.dev ├─ .env.example ├─ .env.test ├─ docker-compose.dev.yml ├─ docker-compose.test.yml ├─ Dockerfile └─ Makefile └─ README.md
config: static and dynamic configuration and initialization logic.
lib: domain logic and presentation layer for the whole application. The sub-directories are self-explanatory.
tests: the test suite and its configuration.
dotenvto set environment variables in
Makefile: use a
Makefileto define executable CLI scripts.
No specific editor is enforced at the team level. Web developers can pick what they are comfortable with but also what does not hinder their productivity.
The following options are the most widely used:
- JetBrain’s IDEs such as RubyMine and GoLand.
- Visual Studio Code.
The following tools are required for all Web projects:
- Docker Desktop and Docker Compose are required to run Web applications locally. Instead of running databases - such as PostgreSQL, Redis but also ElasticSearch - directly on the host machine, these dependencies run in isolation in local containers.
- A GUI tool such as pgAdmin or Postico to interact visually with PostgreSQL databases.
- A powerful terminal replacement such as iTerm.
Due to the diversity of projects the team works on, each application usually requires different versions of programming languages. Versions managers allow to install and switch between different versions effortlessly.
The following version managers are required: