Had issues with main branch so actual full code is on dev-2, and dev is being deployed on the server.
Create Vite Project
npm create vite@latest . -- --template react-ts
Next run:
npm install
Install library
npm install @mui/material @emotion/react @emotion/styled
Install icons
npm install @mui/icons-material
Run the following:
npm run dev
Go to http://localhost:5173/ in your browser to see website.
Follow these steps to integrate Tailwind CSS into your React TypeScript project.
Run the following command to install Tailwind CSS and its dependencies:
npm install -D tailwindcss postcss autoprefixerInitialize the Tailwind configuration files:
npx tailwindcss initThis will create a tailwind.config.js file in the root of your project.
Update tailwind.config.js to specify the paths to your source files:
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}Create a new CSS file (e.g., src/index.css) if it doesn’t already exist. Add the following Tailwind directives:
@tailwind base;
@tailwind components;
@tailwind utilities;npm install react-router-domThis template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptionsproperty like this:
export default tseslint.config({
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})- Replace
tseslint.configs.recommendedtotseslint.configs.recommendedTypeCheckedortseslint.configs.strictTypeChecked - Optionally add
...tseslint.configs.stylisticTypeChecked - Install eslint-plugin-react and update the config:
// eslint.config.js
import react from 'eslint-plugin-react'
export default tseslint.config({
// Set the react version
settings: { react: { version: '18.3' } },
plugins: {
// Add the react plugin
react,
},
rules: {
// other rules...
// Enable its recommended rules
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
},
})- Download PostgreSQL Version 17.2 from https://www.postgresql.org/download/
- Make sure PostgreSQL Server, pgAdmin 4, and Command Line Tools are selected
- Once installed, launch pgAdmin and click "Add New Server"
- In the General tab "Name" box, type "aardvarklocal"
- In the Connection tab "Host name/address" box, type "localhost"
- In the Connection tab, set a password in the designated box. Keep the username as "postgres"
- Click save. The server should be registered in pgAdmin
- Download the "aardvarkdb.sql" file pinned in the developer channel in the discord
- Ensure you are connected to the PostgreSQL server in pgAdmin
- Expand the "aardvarklocal" > "Databases(1)" > "postgres" tree and click on postgres
- Click "Tools" on the top bar, and then "Query Tool"
- Click the folder button within the tool and load the script. The db should now be loaded in