You can use the following command to generate a new library in your NestJS monorepo. It is going to create links in your tsconfig.json file.
nest g lib <library_name>
| import type { NextPage } from 'next' | |
| import Head from 'next/head' | |
| import LoginForm from '../components/login-form' | |
| const Home: NextPage = () => { | |
| return ( | |
| <div> | |
| <Head> | |
| <title>Login Page</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| .login_box { | |
| width: 340px; | |
| background-color: #fff; | |
| } |
| import { Formik, Field, Form, FormikHelpers } from 'formik'; | |
| import styles from './login-form.module.css' | |
| interface Values { | |
| username: string; | |
| password: string; | |
| } | |
| export default function LoginForm() { | |
| return ( |
| import { Formik, Field, Form } from 'formik'; | |
| export default function LoginForm() { | |
| return ( | |
| <Formik | |
| initialValues={{ | |
| username: '', | |
| password: '', | |
| }} |
| export default function LoginForm() { | |
| return ( | |
| <> | |
| </> | |
| ) | |
| } |
| import type { NextPage } from 'next' | |
| import Head from 'next/head' | |
| import LoginForm from '../components/login-form' | |
| const Home: NextPage = () => { | |
| return ( | |
| <div> | |
| <Head> | |
| <title>Login Page</title> | |
| <link rel="icon" href="/favicon.ico" /> |
| import type { NextPage } from 'next' | |
| import Head from 'next/head' | |
| const Home: NextPage = () => { | |
| return ( | |
| <div> | |
| <Head> | |
| <title>Login Page</title> | |
| <link rel="icon" href="/favicon.ico" /> | |
| </Head> |
You can use the following command to generate a new library in your NestJS monorepo. It is going to create links in your tsconfig.json file.
nest g lib <library_name>
| # Install Oh-my-zsh | |
| sudo apt-get install -y zsh | |
| sudo usermod -s /usr/bin/zsh $(whoami) | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
| # Install PHP 7.4 | |
| sudo apt-get install -y software-properties-common | |
| sudo add-apt-repository -y ppa:ondrej/php | |
| sudo apt-get update | |
| sudo apt-get install -y php7.4-bcmath \ |
| For those of you having a performance problem, please drop a message, so I can return you back. |