Simulated Unix Console
This application simulates a Unix console in the browser, using a React front-end, an Express back-end, and a MySQL database for user management. The application allows for basic interaction with a simulated shell environment and supports user authentication.
- Simulated Unix shell in the browser (soon)
- Authentication
- MySQL database for user data storage
- Express server to handle API requests
- React front-end for user interface
Before you begin, ensure you have the following installed on your machine:
Start by cloning the repository to your local machine:
git clone https://github.com/qwegod/webunix.git
cd webunixNavigate to the client directory and install the React dependencies:
cd client
npm installNavigate to the server directory and install the Express dependencies:
cd ../server
npm installCreate a new MySQL database and user for the application:
CREATE DATABASE express_DB;
USE express_DB;
CREATE TABLE users (
id INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(255) NOT NULL,
password VARCHAR(255),
registration_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
directory VARCHAR(255) DEFAULT NULL );Create a .env file in the server directory with the following content:
PORT=3232
SECRET_KEY=your_secret_key
HOST=localhost
USER=root
PASSWORD=your_password
DATABASE=express_DB
Now that everything is set up, you can start both the React front-end and the Express server.
Navigate to the root directory and start the server:
cd ..
npm run startOpen your browser and navigate to:
- Front-end (React):
http://localhost:3000 - Back-end (Express API):
http://localhost:3232