Skip to content

Latest commit

 

History

History
123 lines (76 loc) · 3.48 KB

README.md

File metadata and controls

123 lines (76 loc) · 3.48 KB

mono-folio

This is the very begining of a new project called mono-folio, it is a Next.js based web client to unleash web development experiments for newbies and experimented developers.

It will be a project to empower other developers to have not only an starting point for their own portfolio but also as a reference for newbies to learn and practice with a simple approach to web technologies using a monorepo solution ready to deploy right to the cloud

Note: the initial version is still in progress, it has some testing mocks and texts.

ToDo:

Update documentation with a clear step by step tutorial for deploying in vercel and render cloud services

Getting started

Setting up Node

Next.js v14 requires Node.js 18.17.0 or later. It's recommended to use a node version manager such as nvm or an alternative.

If you're using nvm, you can run the following command to install the correct version of node:

nvm use

Installing dependencies

Once your node version is setup correctly, the next step is to install the dependencies by running:

yarn

Environment variables

If this is your first time running the app, you'll want to create a .env.local file in the root of the project by copying the .env.development file. Make sure to update the values in the .env.local file to match your local environment.

Apps and Packages

Apps

Packages

  • ui: a stub React component library shared by all the applications
  • eslint-config: eslint configurations (includes eslint-config-next and eslint-config-prettier) for code linting
  • typescript-config: tsconfig.jsons used throughout the monorepo

Each package/app is 100% TypeScript.

CONTRIBUTING

Check CONTRIBUTING.md guidelines to get a context before contributing to this repository.

Commands

Running the app

To run the app locally, use the following command:

yarn dev

Unit tests

To run unit tests, use the following command:

yarn test

Formatting

To check the code is formatted correctly, use the following command:

yarn lint

To format the code, use the following command:

yarn format

Storybook

To run the component library Storybook, use the following command:

yarn workspace @mono-folio/storybook storybook

Build

To build all apps and packages, run the following command:

yarn build

Other commands

See the package.json in the root of the repo for a full list of commands you can run.

Useful Links

Learn more about the power of Turborepo: