I'm really new to React so I made this frontend to better understand this technology.
I'm connecting this frontend to a private backend project I have in AWS.
I'm not going to make my private backend but I see no reason to not make frontend open-source.
A pull request with others OS instructions is very welcomed.
This React project is made using Vite (v5.2.3) and Typescript.
Vite itself is run by Node Package Manager (NPM).
- using version 20.12.1
- all commands were run in Windows PowerShell as administrator
Before run the project you need Node.js. If you already have it, skip this step.
Personally, I'm prefer to use Chocolatey to install and maintain Node.js but you can install it however you prefer.
To install Chocolatey, run:
Set-ExecutionPolicy Bypass -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'));
When I created this project, Chocolatey had not the 20.12.1 (LTS) node version, so I used this command to install node.js:
choco install nodejs-lts
But in your case, you can specifically download the 20.12.1 node version using:
choco install nodejs --version="20.12.1"
git clone https://github.com/MDIVS/event-manager-react.git # clone this repo
cd event-manager-react # access project folder
npm i # install dependencies
Now you problably are ready to go with
npm run dev
To create a new project, just type
npm create vite@latest
Enter the Project Name
, then select React
and TypeScript
.
This will create the project in the folder with the specified project name. Now you can open the folder and install dependencies.
cd <PROJECT_NAME>
npm i
We are using Tailwind here to improve stylization productivity. To install tailwind in a Vite project follow this tutorial.
Also, if using VS Code, it is recommended to install the Tailwind CSS IntelliSense extension.
After installing Tailwind, execute this Tailwind Merge installation for easily merge styles:
npm i tailwind-merge
For ignore @tailwind
error, configure VSCode’s .vscode/settings.json
workplace path as follow to associate CSS files with Tailwind:
{
"files.associations": {
"*.css": "tailwindcss"
}
}
Icons, icons and more icons (IN SVG!!!!!!)
npm i lucide-react