Quick Start Guide
Get up and running with NS Software Solutions website in minutes.
Prerequisites
- Node.js: v18+ (check with
node --version) - npm: v9+ (check with
npm --version) - Git: Latest version
- Supabase account: supabase.com
- Netlify account (for deployment): netlify.com
Project Setup (5 minutes)
1. Clone the Repository
git clone https://github.com/nssoftwaresolutions/academixpro.git
cd academixpro
2. Install Dependencies
npm install
This installs 50+ dependencies including React, Vite, TypeScript, Tailwind CSS, and Supabase.
3. Set Up Environment Variables
Copy the example file and configure:
cp .env.example .env
Edit .env with your values:
VITE_SUPABASE_URL=https://your-project-ref.supabase.co
VITE_SUPABASE_ANON_KEY=your-anon-key-here
VITE_APP_URL=http://localhost:5173
How to get these values:
- Go to Supabase Dashboard
- Select your project
- Copy URL and Anon Key from Settings → API
4. Start Development Server
npm run dev
Open http://localhost:5173 in your browser.
What you should see:
- Homepage with hero section
- Navigation bar with links
- Project catalog on home page
- No errors in console
Testing the Platform
As a Guest User
-
Browse Projects
- Click "Explore Projects" on homepage
- Use filters (Domain, Price, Technology)
- Click on a project card to view details
-
Submit Inquiry
- On project details, click "WhatsApp" or "Email"
- Fill name, email, phone
- Confirm and you'll be redirected
-
View Services
- Navigate to Services page
- View FAQ accordion
- Fill and submit service request form
-
Read Blog
- Click Blog in navigation
- Read any of the 3 published posts
As a Registered User
-
Sign Up
- Click "Login" in top-right
- Choose "Sign Up" option
- Enter email and password
- Email confirmation required (check spam folder)
-
View Dashboard
- After login, redirected to
/user/dashboard - See stats (0 purchases, etc.)
- Click quick action buttons
- After login, redirected to
-
Request Custom Project
- Go to "Request Project"
- Select a project
- Choose request type (Purchase, Demo, etc.)
- Write custom message
- Submit
-
View Profile
- Click "Profile" in sidebar
- View/edit name and contact info
- Check session activity
As an Admin User
To access admin panel, you need admin role in database.
Set Admin Role (One-Time Setup):
- Go to Supabase Dashboard → SQL Editor
- Run:
UPDATE profilesSET role = 'admin'WHERE email = 'your-email@example.com';
- Sign out and sign in again
- Navigate to
/admin
Admin Features to Test:
- Dashboard: View stats and recent activity
- Projects: Create/edit/delete projects, upload screenshots
- Purchases: Create purchase for user + attach files
- Requests: View and respond to all request types
- Users: See all registered users and their activity
Common Commands
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build locally
npm run preview
# Run linter
npm run lint
# Format code (if configured)
npm run format
# Type check
npm run type-check
Project Structure
academixpro/
├── src/
│ ├── components/ # React components (UI, pages, layouts)
│ ├── pages/ # Page components
│ ├── hooks/ # Custom React hooks
│ ├── contexts/ # React Context (AuthContext)
│ ├── lib/ # Utilities (auth, validation, API)
│ ├── config/ # Constants and configuration
│ ├── integrations/ # Supabase client setup
│ ├── App.tsx # Root component
│ └── main.tsx # Entry point
├── public/ # Static assets (images, favicon, etc)
├── Doc/ # Project documentation
├── .env.example # Environment variables template
├── vite.config.ts # Vite configuration
├── tailwind.config.ts # Tailwind CSS configuration
└── tsconfig.json # TypeScript configuration
Troubleshooting
Issue: "Cannot find module 'supabase'"
Solution: Run npm install again
rm -rf node_modules package-lock.json
npm install
Issue: "VITE_SUPABASE_URL is not defined"
Solution: Ensure .env file exists with proper variables
# Check if .env exists
cat .env
# If not, create it from template
cp .env.example .env
# Edit .env with your Supabase credentials
Issue: Cannot sign up / "Email already exists"
Solution: Supabase might have rate limiting or the email is already used
- Use a different email address
- Check Supabase dashboard for the user
- Clear browser cookies and try again
Issue: Admin panel shows "Unauthorized"
Solution: Your user role is not set to 'admin'
- Run the SQL command above to set admin role
- Sign out completely and sign in again
- Check
profilestable to verify role = 'admin'
Issue: Screenshots not showing on projects
Solution: Supabase Storage URL might be wrong
- Check Supabase Storage bucket configuration
- Verify bucket policies allow public read access
- Re-upload screenshot and verify URL format
Issue: Project not building - TypeScript errors
Solution: Fix type errors before building
# Check all TypeScript errors
npm run type-check
# Fix common issues
npm run lint --fix
Next Steps
After getting the basics working:
-
Read Full Documentation
-
Customize for Your Use
- Update company logo and colors
- Modify project domains (if needed)
- Configure email templates
- Add your contact information
-
Deploy to Production
- Follow Deployment Guide
- Set up custom domain
- Configure DNS and SSL
- Set up monitoring and analytics
-
Add More Features
- Modify feature set based on your needs
- Add new pages or sections
- Integrate with external services
- Implement custom workflows
Support & Resources
- Documentation: https://docs.nssoftwaresolutions.in
- Supabase Docs: https://supabase.com/docs
- React Docs: https://react.dev
- Tailwind CSS: https://tailwindcss.com