How to set up project locally on Shipixen
Setting up a Shipixen project locally involves downloading your generated project from the Shipixen dashboard and running npm install followed by npm run dev. The process typically takes 5-10 minutes and requires Node.js 18 or higher.
Prerequisites
- Node.js 18+ installed
- Git installed
- Shipixen account
- Code editor (VS Code recommended)
Step-by-Step Instructions
Access your Shipixen dashboard
Download and extract the project
git clone [your-project-url]
cd [project-name]Install dependencies
npm installThis will install Next.js, Tailwind CSS, and other Shipixen-specific packages.
Configure environment variables
cp .env.example .env.localEdit
.env.local and add your API keys and configuration values as needed.Start the development server
npm run devThe application will start on
http://localhost:3000 by default. You should see your Shipixen project running locally.Verify the setup
http://localhost:3000. You should see your Shipixen landing page with all components and styling working correctly. Check the terminal for any error messages.Set up your development workflow
.vscode/settings.json and prettier.config.js files for consistent formatting.Common Issues & Troubleshooting
npm install fails with permission errors
Run sudo npm install on macOS/Linux or run your terminal as Administrator on Windows. Alternatively, configure npm to use a different directory for global packages.
Development server won't start or shows port already in use
Kill any processes using port 3000 with lsof -ti:3000 | xargs kill -9 on macOS/Linux or use netstat -ano | findstr :3000 on Windows to find and terminate the process.
Styles not loading correctly or Tailwind classes not working
Ensure Tailwind CSS is properly configured by checking tailwind.config.js and running npm run build to verify the build process works correctly.
Environment variables not loading
Verify your .env.local file is in the project root directory and variable names start with NEXT_PUBLIC_ for client-side access. Restart the development server after making changes.