Git Product home page Git Product logo

online-classroom's Introduction

Next.js + Tailwind CSS Example

This example shows how to use Tailwind CSS (v2.1) with Next.js. It follows the steps outlined in the official Tailwind docs.

It uses the new Just-in-Time Mode for Tailwind CSS.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example with-tailwindcss with-tailwindcss-app
# or
yarn create next-app --example with-tailwindcss with-tailwindcss-app

Deploy it to the cloud with Vercel (Documentation).

Criando o projeto 'online-classroom'

> yarn create next-app --example with-tailwindcss online-classroom

yarn create v1.22.10
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ”¨  Building fresh packages...
success Installed "[email protected]" with binaries:
      - create-next-app
Creating a new Next.js app in /Volumes/ROBERTO-CD2/Dev/Projetos/clouds/aws/online-classroom.

Downloading files for example with-tailwindcss. This might take a moment.

Installing packages. This might take a couple of minutes.

yarn install v1.22.10
info No lockfile found.
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ”¨  Building fresh packages...
success Saved lockfile.
✨  Done in 77.20s.

Initialized a git repository.

Success! Created online-classroom at /Volumes/ROBERTO-CD2/Dev/Projetos/clouds/aws/online-classroom
Inside that directory, you can run several commands:

  yarn dev
    Starts the development server.

  yarn build
    Builds the app for production.

  yarn start
    Runs the built app in production mode.

We suggest that you begin by typing:

  cd online-classroom
  yarn dev

✨  Done in 85.59s.

Instalando o TYPESCRIPT

Criar o arquivos: tsconfig.json

> yarn add --dev typescript @types/react
yarn add v1.22.10
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ”¨  Building fresh packages...
success Saved lockfile.
success Saved 5 new dependencies.
info Direct dependencies
β”œβ”€ @types/[email protected]
└─ [email protected]
info All dependencies
β”œβ”€ @types/[email protected]
β”œβ”€ @types/[email protected]
β”œβ”€ @types/[email protected]
β”œβ”€ [email protected]
└─ [email protected]
✨  Done in 80.56s.

Enviando para o 'Github'

git init
git add .
git commit -m "Start Project"
git remote add origin https://github.com/optydeviocourses/online-classroom.git
git branch -M main
git push -u origin main

MongoDb Atlas

  • Configuração:
mongodb+srv://teach-other:<password>@optydev-io-courses.nffnz.mongodb.net/test
  • Instalação
> yarn add mongodb
> yarn add -D @types/mongodb

online-classroom's People

Contributors

optydeviocourses avatar tenroberto2011 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.