Initialize project using Create React App
This commit is contained in:
45
README.md
Normal file
45
README.md
Normal file
@@ -0,0 +1,45 @@
|
||||
# Medication Plan Assistant
|
||||
|
||||
## Setup
|
||||
|
||||
```sh
|
||||
# Install dependencies
|
||||
npm install -D recharts tailwindcss postcss autoprefixer
|
||||
|
||||
# Initialize tailwind CSS (creates config files)
|
||||
npx tailwindcss init -p
|
||||
```
|
||||
|
||||
## Fresh Start
|
||||
|
||||
```sh
|
||||
npm uninstall tailwindcss postcss autoprefixer recharts
|
||||
npm install -D tailwindcss@^3.0.0 postcss@^8.0.0 autoprefixer@^10.0.0
|
||||
npm install --save recharts
|
||||
rm -rf node_modules package-lock.json
|
||||
npm install
|
||||
npx tailwindcss init -p
|
||||
```
|
||||
|
||||
./tailwind.config.js:
|
||||
|
||||
```javascript
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
module.exports = {
|
||||
content: [
|
||||
"./src/**/*.{js,jsx,ts,tsx}",
|
||||
],
|
||||
theme: {
|
||||
extend: {},
|
||||
},
|
||||
plugins: [],
|
||||
}
|
||||
```
|
||||
|
||||
./src/index.css:
|
||||
|
||||
```css
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
```
|
||||
Reference in New Issue
Block a user