Skip to content

Modino-io/modino-website

Repository files navigation

modino-website

modino.io website

How to add new article

In order to add new article which will be displayed on https://modino.io/articles, a file with an .mdx extension has to be created in src/articles directory (name of the file does not matter).

Header section

In the beginning of the file a section with a metadata has to be created. A structure of the section is as follows in the example below:

---
title: "Modino.io - V4 Startup Force 2023"
tile_title: "V4 Startup Force, autumn edition 2023"
summary: "On November 20–22, 2023, as the only startup from Poland, the Modino.io team took part in finals of the V4 Startup Force acceleration program. The event was held in the Hungarian capital city – Budapest."
meta_description: "Modino.io joins V4 Startup Force, autumn edition as the only startup from Poland. Learn more about the event and our participation."
date: "2023-12-19"
thumbnail: "./../images/articles/V4-group-autumn-2023.jpg"
slug: "v4-budapest-2023"
type: "article"
category: "press"
---

Description of the fields in the header section:

  • title - title displayed on the tab in user's browser,
  • tile_title - title displayed on the article tile on articles list and on the article page,
  • summary - a summary displayed on the article's tile, it is not displayed in the article's text when viewing the article,
  • meta_description - description placed in the meta tag which should summarize the article (for SEO purposes),
  • date - publication date for the article,
  • thumbnail - source path for article's thumbnail, photo must be placed in src/images directory
  • slug - link to the article on which the article will be available (in this case, modino.io/articles/v4-budapest-2023),
  • type - hardcoded value which determines whether it is an article or job-offer (use article in this case),
  • category - article's categories as coma-separated list, e.g. Case study, Press, Plog or any combination of them, e.g. Blog, Case study.

For checking meta tada (title, meta description) use this website https://totheweb.com/learning_center/tool-test-google-title-meta-description-lengths/

Article's text

After the header section, article text can be written using regular Markdown syntax. Check https://www.markdownguide.org/basic-syntax/ for basics that you can use for text formating.

To add an image, firstly add a file to src/images directory. In the article's text use Markdown syntax ![](./../images/image_name.ext) where image_name.ext is a name of the image with its extension (e.g. ![](./../images/articles/V4-group-work-2023.jpeg)).

CAUTION: All images' source paths must begin with ./../images/, the same goes for a thumbnail photo path in the header section

To add a regular link use []() syntax, e.g. [Modino.io](https://modino.io).

How to add new job offer

The rules are the same as in the case of creating new article, but files with the job offer's text should be placed in src/jobs.

Header section

Fields that need to be filled in case of a job offer are as follows:

---
title: "Internship program"
meta_description: "If you're passionate about software engineering and love solving UX/UI or engineering challenges, our internship could be a great fit for you."
slug: "internship-program"
type: "job-offer"
---

Description of the fields:

  • title - name of a job, will be displayed on the job list and when viewing the job,
  • meta_description - description placed in the meta tag which should summarize the job offer (for SEO purposes),
  • slug - link to the job offer on which it will be available (in this case, modino.io/jobs/internship-program),
  • type - hardcoded value which determines whether it is an article or job-offer (use job-offer in this case).

Deployment instructions

  1. Check this repository and make required changes.
  2. Check your changes into a new branch, follow gitflow (https://nvie.com/posts/a-successful-git-branching-model/).
  3. Make PR from your branch into master.
  4. Ask for a review.
  5. Once everything is final, merge into master the build system will pick up the changes and deploy a new site.

Local development process - running the local website container

We use a small wrapper so docker compose up always rebuilds first. No stale images, no surprises.

Usage

make up     # rebuilds and starts; Ctrl-C stops without Make error
make reup   # down + rebuild + up; Ctrl-C handled the same way
make down   # stop/remove containers
make ps     # show status
make logs   # follow logs
make clean  # full cleanup (containers, images, volumes, orphans, cache)

Tip: the first build is slower (fresh deps). Subsequent runs are faster thanks to BuildKit caching.

Where to Access the Site

The container listens on 8080, the site is available at:

http://localhost:8080 (on your machine)

http://:8080 (from your LAN)

Health check:

curl -i http://localhost:8080/healthz # expect: HTTP/1.1 200 OK

If a port is taken, change the left side of the mapping (e.g., "3000:8080" → http://localhost:3000) and run make reup.

Troubleshooting

  • Port already in use → adjust ports: (e.g., 3000:8080), then make reup.

  • Force a clean rebuild → docker compose build --no-cache && make up

  • See what’s running → docker compose ps and docker ps --format 'table {{.Names}}\t{{.Ports}}'

About

modino.io website

Resources

Stars

Watchers

Forks

Contributors