CHECK IT LIVE HERE: https://character-creator-rho.vercel.app/
Greetings, adventurer! This is a full-stack web application for creating a character personality. You can choose or randomize four aspects of your personality: trait, bond, flaw and ideal. Also, if you need more inspiration, you can generate a small background to give life to your character.
I built the app with React + Vite. Frontend includes TypeScript, TailwindCSS and DaisyUI for styling, and PostCSS for processing CSS. Backend includes Node.js with Express for server-side logic and database management with Sequelize and PostgreSQL. Authentication is handled with bcrypt and JWT.
To run this project locally, you need to configure environment variables. Follow these steps:
You'll need:
VITE_API_URL:your_preferred_localhost_example_http://localhost:3000
PORT:your_local_port_example_3000
CORS_ORIGIN:your_localhost
DB_PASS:your_local_db_password
DATABASE_URL:your_backend_url
ENVIRONMENT:development
SECRET_KEY:
DEEPSEEK_API_KEY::your_deepseek_api_key
DB_NAME:your_db_name
DB_USER:your_db_user
DB_PASSWORD:your_db_password
DB_HOST:your_db_host
DB_PORT:your_db_port
...
โ๏ธ Step 1: Clone the repository to your local machine (replace your-username
with your GitHub username):
git clone https://github.com/your-username/character-creator.git
cd character-creator
โ๏ธ Step 2: Install dependencies for both frontend and backend:
cd frontend
npm install
cd ../backend
npm install
โ๏ธ Step 3: Start the development servers:
Terminal 1 (Frontend):
cd frontend
npm run dev
Terminal 2 (Backend):
cd backend
npm run dev
Once the server is running, you'll see a URL similar to:
> Local: http://localhost:5173/
โ๏ธ Step 1: Build the frontend:
cd frontend
npm run build
โ๏ธ Step 2: Start the backend server:
cd backend
npm start
Run component tests:
cd frontend
npm run test:unit
Run end-to-end tests:
cd frontend
npm run test:e2e
If you want to contribute or report issues, feel free to create an issue or submit a pull request.