Welcome to the Tansa repository! 🚀
Follow the steps below to get up and running quickly!
Make sure you have the following installed:
- Node.js: Download here
- pnpm: Installation guide
Tip: Install
pnpm
usingnpm
with the following command:npm install -g pnpm@latest-10
- Git: Ensure you have Git installed to manage version control.
To check if Git is installed, run:
git --version
If Git is not installed, follow these steps:
- Download Git from git-scm.com
- Install Git following the setup instructions for your OS
- Verify the installation by running:
git --version
Run the following command in your terminal at your desired directory:
git clone https://github.com/UoaWDCC/tansa.git
Navigate to the project root and install the required dependencies:
pnpm install
Create a .env
file in the root directory and configure the following settings:
# Database Configuration
DATABASE_URI=
PAYLOAD_SECRET=
# AWS S3 Storage
S3_BUCKET=
S3_ACCESS_KEY_ID=
S3_SECRET_ACCESS_KEY=
S3_REGION=
To launch the development environment, run:
pnpm dev
Once the server is running, the application will be available at:
- Frontend:
http://localhost:3000
- Admin Page:
http://localhost:3000/admin
Before starting any new work, create a new branch using the following convention:
git checkout main # Switch to the main branch
git status # checking if your up to date
git checkout -b feature/your-feature-name # checkout and create a new branch called your feature
Follow this format for commit messages:
[type]: [Short description]
[Optional: Additional details about the change]
feat: add user authentication
fix: resolve crash on login page
docs: update README with setup instructions
refactor: optimize database query
Once your changes are complete, push your branch and create a pull request:
git add .
git commit -m "feat: implement new dashboard UI"
git push origin feature/your-feature-name
After creating a pull request, request a review before merging.
Enjoy coding with Tansa! 💻✨
Thank you to these wonderful people (emoji key):
Koutaro Yumiba 💻 |
kouTARO PLS HELP ME WITH 220 PLEASE PLEASE PLEASE PLEASE
TANSA IS THE BEST 1234! !!!!