Official website for FidCore, built with Next.js as a modern responsive web application.
- Project Overview
- Tech Stack
- Prerequisites
- Getting Started
- Development Workflow
- Using Claude Code to Modify the Project
- Project Structure
- Available Commands
- Deployment
- FAQ
This is the official website for FidCore, featuring a landing page with sections including hero, team introduction, solutions, tech stack showcase, and more.
| Technology | Version | Description |
|---|---|---|
| Next.js | 14.1.0 | React full-stack framework |
| React | 18.2.0 | UI library |
| TypeScript | 5.3.3 | Type-safe JavaScript |
| Tailwind CSS | 3.4.1 | Utility-first CSS framework |
| Framer Motion | 11.0.0 | Animation library |
Before you begin, make sure you have the following software installed on your computer:
- Visit the Node.js official website
- Download the LTS version (recommended 18.x or higher)
- Run the installer and follow the prompts
- Open your terminal and verify the installation:
node --version # Should display v18.x.x or higher npm --version # Should display 9.x.x or higher
- Visit the Git official website
- Download and install
- Verify the installation:
git --version # Should display git version 2.x.x
npm install -g @anthropic-ai/claude-codeAfter installation, run claude in the project directory to start AI-assisted development.
# Clone the repository to your local machine
git clone <your-repository-url>
# Navigate to the project directory
cd fidcore-sitenpm installThis command installs all required dependencies based on the
package.jsonfile. It may take a few minutes.
npm run devOnce started successfully, open your browser and visit http://localhost:3000 to see the website.
In development mode, the page will automatically refresh when you modify the code.
IMPORTANT: Never make changes directly on the production server. Always develop and test locally first, then deploy to production.
| Environment | Purpose | URL | When to Use |
|---|---|---|---|
| Development | Local development and coding | http://localhost:3000 | Writing and modifying code |
| Production | Live website for end users | Your production server | After testing is complete |
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Development │────>│ Testing │────>│ Production │
│ (localhost) │ │ (localhost) │ │ (server) │
└─────────────────┘ └─────────────────┘ └─────────────────┘
- Make sure you are working on your local machine, not the production server
- Start the development server:
npm run dev
- Make your code changes
- Preview changes at http://localhost:3000
Before deploying to production, always verify:
-
Build test - Ensure the project builds without errors:
npm run build
-
Production preview - Test the production build locally:
npm run build && npm run startVisit http://localhost:3000 to verify everything works correctly.
-
Code quality check:
npm run lint
Once testing is complete:
git add <files>
git commit -m "Your commit message"
git push origin mainSee the Deployment section below.
- Never edit code directly on the production server
- Always test locally before deploying
- Create a backup before major updates on production
- Use Git branches for new features (e.g.,
git checkout -b feature/new-feature)
Claude Code is an AI programming assistant that helps you quickly modify code.
Open a terminal in the project root directory and run:
claudeHere are some prompts you can use directly:
Change the homepage title to "Welcome to FidCore"
Change the navbar background color to dark blue
Add a "Back to Top" button at the bottom of the page
Update the Hero component to add a subtitle
Show the contents of src/components/Hero.tsx
- Describe what you want to change - Clearly explain your requirements
- Review the proposed changes - Claude will explain what it plans to do
- Preview the results - Check the changes in your browser (localhost:3000)
- Test the build - Run
npm run buildto ensure no errors - Commit your code - Once satisfied, ask Claude to commit
Example for committing code:
Commit these changes with the message "Update homepage title"
fidcore-site/
├── public/ # Static assets directory
│ └── images/ # Image files
├── src/ # Source code directory
│ ├── app/ # Next.js App Router
│ │ ├── layout.tsx # Global layout
│ │ └── page.tsx # Homepage
│ ├── components/ # React components
│ │ ├── Hero.tsx # Hero section
│ │ ├── Navbar.tsx # Navigation bar
│ │ ├── Solutions.tsx # Solutions section
│ │ ├── Team.tsx # Team introduction
│ │ ├── TechStack.tsx # Tech stack showcase
│ │ ├── SocialProof.tsx # Customer testimonials
│ │ └── Footer.tsx # Footer
│ └── lib/ # Utility functions
│ └── utils.ts # Common utilities
├── package.json # Project configuration and dependencies
├── tailwind.config.ts # Tailwind CSS configuration
├── tsconfig.json # TypeScript configuration
└── README.md # Project documentation (this file)
| File | Purpose | When to Modify |
|---|---|---|
src/app/page.tsx |
Homepage entry | Adjust component order on the page |
src/components/*.tsx |
Page components | Modify specific content or styles |
public/images/ |
Image assets | Replace or add images |
tailwind.config.ts |
Theme configuration | Modify colors, fonts, and global styles |
| Command | Description | When to Use |
|---|---|---|
npm run dev |
Start development server | During development |
npm run build |
Build for production | Before deployment |
npm run start |
Start production server | On production server |
npm run lint |
Run code linting | Before committing |
This is the primary deployment method. Deploy to your production server after local testing is complete.
- SSH access to the production server
- Node.js installed on the production server
- PM2 installed for process management
-
SSH into the production server:
ssh user@your-production-server
-
Clone the repository:
git clone <your-repository-url> cd fidcore-site
-
Install dependencies:
npm install
-
Build the project:
npm run build
-
Start with PM2:
# Install PM2 if not already installed npm install -g pm2 # Start the application pm2 start npm --name "fidcore-site" -- start # Save PM2 configuration pm2 save # Set up auto-start on server reboot pm2 startup
-
SSH into the production server:
ssh user@your-production-server
-
Navigate to project directory:
cd fidcore-site -
Pull the latest code:
git pull origin main
-
Install any new dependencies:
npm install
-
Rebuild the project:
npm run build
-
Restart the application:
pm2 restart fidcore-site
You can create a deploy script on the production server:
# Create deploy.sh in the project root on production server
#!/bin/bash
echo "Pulling latest code..."
git pull origin main
echo "Installing dependencies..."
npm install
echo "Building project..."
npm run build
echo "Restarting application..."
pm2 restart fidcore-site
echo "Deployment complete!"Make it executable and run:
chmod +x deploy.sh
./deploy.sh| Command | Description |
|---|---|
pm2 status |
Check application status |
pm2 logs fidcore-site |
View application logs |
pm2 restart fidcore-site |
Restart the application |
pm2 stop fidcore-site |
Stop the application |
pm2 delete fidcore-site |
Remove from PM2 |
Use this option if you prefer automated deployments or don't have a dedicated production server.
- Visit Vercel and create an account
- Click "New Project"
- Import your GitHub repository
- Click "Deploy"
- Wait for deployment to complete and get your live URL
Vercel automatically monitors your GitHub repository and redeploys whenever you push new code.
A: Try the following steps:
# Clear cache
npm cache clean --force
# Delete installed dependencies
rm -rf node_modules
rm package-lock.json
# Reinstall
npm installA: Start with a different port:
npm run dev -- -p 3001A: Edit the theme.extend.colors section in the tailwind.config.ts file.
A: Place them in the public/images/ directory, then reference them in code using /images/xxx.png.
A: Create a new folder in the src/app/ directory, for example src/app/about/page.tsx, and it will be accessible at /about.
A: Always run these commands before deploying:
npm run lint # Check for code issues
npm run build # Verify production build worksA: Make sure you:
- Pushed your changes to GitHub (
git push) - Pulled the changes on production server (
git pull) - Rebuilt the project (
npm run build) - Restarted PM2 (
pm2 restart fidcore-site)
- Create a new branch for development
- Develop and test locally
- Ensure
npm run lintandnpm run buildpass - Write clear commit messages
- Push and create a Pull Request for code review
- After approval, merge and deploy to production
If you have any questions, please contact the technical team.
Last updated: January 2025