This is frontend of CaseAce, a management system for Law Firm. We built this using native HTML, with a bit of help of PHP includes to minimize copy pasting codes.
- Install XAMPP or PHP on your machine
- Run PHP
- Pull/Clone the git repo, the frontend and the backend.
- Start backend server.
- CD into your directory that keeps this project.
- Run
php -S localhost:3000
to start PHP server. - IF XAMPP is used, simply run the
Apache
. Ensure that the directory in XAMPP is set to correct path. Note!XAMPP
usedC:/xampp/htdocs/
as defaults, consider moving your project to that path or modify the path in the config file ofXAMPP APACHE
. - Go to
localhost:3000
in browser. - Login
- Get the
.env
file - Create a file
/env
in this project folder - Run
npm i
to install packages - Run
npm start
to start server
- Checkout to main branch:
git checkout main
- Checkout to new branch according to naming convention:
git chekcout -b <branchname: username/featureName
, for example:git checkout -b weiqi/login
- Write some code
- Check modified files:
git status
- Add neccessary files to push:
git add .
(to add all modified files) orgit add <files separated by space>
(to add selected files:git add "login.css" "login.html" "code/invalid.html"
) - Commit the changes:
git commit -m <commit message>
. Commit message starts with a verb:git commit -m "Add Login page and Css"
- Push to GitHub:
git push -u origin <branch name>
- Make a pull request in GitHub. (Note: only do this once each branch/feature)