- Clone the repository:
git clone <your-repository-url>
cd <repository-name>
- Install dependencies:
npm install
- Start development server:
npm run dev
- Create a production build:
npm run build
This will create a dist
folder containing the static files ready for deployment.
You can host the contents of the dist
folder on any static hosting service:
- Netlify
- Vercel
- GitHub Pages
- Amazon S3
- Firebase Hosting
If you're using your own server:
- Install a web server (e.g., Nginx or Apache)
- Copy the contents of the
dist
folder to your web server's public directory - Configure your web server to serve the static files
server {
listen 80;
server_name your-domain.com;
root /path/to/dist;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
-
Update image URLs:
- Currently, images are loaded from
diliberg.net
- For self-hosting, you should:
- Download the images
- Host them in your
public
folder - Update the image URLs in the components
- Currently, images are loaded from
-
Environment Variables:
- If you're using any environment variables, create a
.env
file based on.env.example
- Set the appropriate values for your environment
- If you're using any environment variables, create a
-
SEO:
- Update the meta tags in
index.html
for your domain - Consider adding a sitemap.xml
- Add appropriate robots.txt
- Update the meta tags in
-
Analytics:
- Add your preferred analytics solution
- Update privacy policy if needed
- Keep dependencies updated:
npm update
- Regular security updates:
npm audit fix
- Monitor performance using browser dev tools