Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

atilafassina/rosetta

Repository files navigation

❗️ This project is heavily under development still. Not yet ready to be used.


This is an opinionated starter template for Next.JS projects that aim to have multi-language routes, plus other stack decisions to get you closer to the point of simply writing your app.

❗️This project runs on a Custom Server until NextJS supports routes Rewrite() on stable releases. Using a Custom Server carries a series of tradeoffs that you must evaluate according to your project neccessities, it is definitely not recommended for everyone.

Stack

Getting started

  1. Clone this project into the destination directory
  2. Navigate into your project‘s directory
  3. Install all depedencies
# You can do everything running this command:
git clone git@github.com:atilafassina/nextjs-multilang-boilerplate.git PROJECT_NAME && \
cd $_ && \
yarn

Development

Task Description
server-dev Starts the development server with Nodemon so changes to the back-end restart the process.†
dev Starts the development server for Next.JS with the custom server.
build Compiles the application for production deployment
start Starts the production server

†: Hot reloading does not work in this mode

Usage

For client-side only development:

yarn dev

For fullstack or server-side development:

yarn server-dev

Open http://localhost:3000 with your browser to see the result.

You‘re now ready to start making changes to your app.

Configuration

Key Description
supportedLanguages An array of languages that are supported by the application†
defaultLanguage Which language is served on the apps root (/)

†: The slug for the language route is taken from this array.

Directory Architecture

TBD

Releases

No releases published

Packages

No packages published