Commands to create a NextJs, React with Tailwind CSS and MongoDB
👤 By edwin | 📆
I recently learned about NextJs and Tailwind which makes a great combination for a React App.
These are my notes on how to create an app using these commands:
- Create a new app directory
$ mkdir myapp
- Cd into the new directory
$ cd myapp
- Create a NextJs app with Tailwind in the myapp directory
$ npx create-next-app -e with-tailwindcss .
- Install MongoDb realm-web to access MongoDB Atlas Cloud services (API)
$ npm i realm-web
- Create an envorinments file to keep your credentials secured used by NextJS
$ touch .env.local
- Start a development server
$ npm run dev
- asdf
- adf
- asdfas