Coder Social home page Coder Social logo

nissan / nrd-starter-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.46 MB

A starter app for new enterprise projects

JavaScript 3.90% CSS 15.13% TypeScript 29.41% Handlebars 0.13% Dockerfile 1.37% Ruby 17.67% HTML 5.60% Shell 0.55% Scala 5.60% MDX 8.97% Python 0.44% Java 0.93% ASL 0.22% Rust 1.20% Vue 8.88%

nrd-starter-app's Introduction

NRD-Starter-App

The "Nerd Starter App" may not have any practical value, however I wanted a way to initialise multiple app frameworks and languages with an example as I dive deeper in different directions over time and also dive deeper into Turbo as a repository management tool for growingly complex scenarios. As such, some pre-requisite installations are assumed:

  • nvm (or a node version manager with NodeJS >=20 installed) with pnpm enabled
  • rbenv
    • This allows us to get Ruby on Rails 7
  • Python 3.12
    • Note I use Mamba to create an environment here for development
  • Scala Build Tool (sbt)
  • Java, Maven, Gradle for the Spring Boot app
    • Also used SDKMan for installing Java versions and Spring Boot tooling
    • Also used brew install graphviz on MacOS to install Graphviz for Structurizr

Built on top the Turborepo starter

This is built on top of the official starter Turborepo.

Using this example

Run the following command:

pnpm install
pnpm dev

What's inside?

The original Turborepo included the following packages/apps:

Apps and Packages

  • docs: a Next.js app
    • runs on port 3000
  • web: another Next.js app
    • runs on port 3001
  • @repo/ui: a stub React component library shared by both web and docs applications
  • @repo/eslint-config: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • @repo/typescript-config: tsconfig.jsons used throughout the monorepo

Each package/app is 100% TypeScript.

Additional Apps and Packages

  • blog: A sample Ruby on Rails 7.1 web app
    • runs on port 3002
  • sample-api: A Sample API using NestJS, a progressive Node.js framework for building efficient, reliable and scalable server-side applications
    • runs on port 3003
  • sample-play-framework: A sample API using the Play framework that makes it easy to build web applications with Java & Scala
    • runs on port 3004
  • sample-storybook: A Storybook frontend workshop for building UI components and pages in isolation, this example that works with NextJS
    • app will run on port 3005
    • storybook will run on port 3006
  • sample-fast-api: A sample API using the Python-based FastAPI framework, example app
    • runs on port 3007
  • spring-boot-demo: A sample barebone REST API in Java using the Spring Boot framework
    • runs on port 3008
  • structurizr: A structurizr-lite app

Utilities

This Turborepo has some additional tools already setup for you:

Build

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

cd nrd-starter-app
pnpm build

Develop

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

cd nrd-starter-app
pnpm dev

Remote Caching

Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.

By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:

cd nrd-starter-app
npx turbo login

This will authenticate the Turborepo CLI with your Vercel account.

Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:

npx turbo link

Useful Links

Learn more about the power of Turborepo:

nrd-starter-app's People

Contributors

nissan avatar turbobot-temp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.