- AppWrite
- MySQL
- React
- Multer
- React Query
- JWT
- Vite
- Tailwind CSS
- Node.js
- Express
- Socket.io
This project is organized into two main folders:
- frontend: Contains the React app along with the build configuration.
- server: Contains the backend logic using Node.js and Express.
Follow these steps to set up and run the project locally:
Ensure you have the following tools installed on your local machine:
- Node.js (v20.x or higher)
- MySQL (https://dev.mysql.com/downloads/installer/)
- AppWrite (https://appwrite.io/) (or a running instance of AppWrite)
- Vite (https://vitejs.dev/) for frontend development (optional if you're using npm)
git clone https://github.com/GiovanniL30/aeiluminate-finals.git
cd aeiluminate-finals
Navigate to the frontend folder:
cd frontend
Install the dependencies:
npm install
Navigate to the server folder:
cd ../server
Install the dependencies:
npm install
You will need to configure the environment variables for both the frontend and backend to work properly.
In the frontend folder, create a .env file and add the following configuration:
VITE_API_BASE_URL=http://localhost:1099
In the server folder, create a .env file and add the following configuration:
#Application
PORT
secret_key
ADMIN_USERNAME
ADMIN_PASSWORD
#Appwrite
APP_WRITE_ENDPOINT
APP_WRITE_PROJECT_ID
#Database
DATABASE_HOST
DATABASE_USER
DATABASE_PASSWORD
DATABASE_PORT
DATABASE_NAME
To start the backend server, run the following command from the server folder:
npm start
To start the frontend development server, run the following command from the frontend folder:
npm run dev