The official website for WeSense - a decentralised environmental data commons.
- React 19
- Vite 7
- Bootstrap 5
- React Bootstrap
# Install dependencies
npm install# Start the dev server
npm run devThe site will be available at http://localhost:5173 (or the next available port).
Note: Opening index.html directly in a browser won't work - you must use the Vite dev server.
# Create production build
npm run build
# Preview production build
npm run previewnpm run lintwesense-website/
├── src/
│ ├── components/ # React components
│ │ ├── Header.jsx
│ │ ├── Hero.jsx
│ │ ├── Mission.jsx
│ │ ├── Why.jsx
│ │ ├── HowItWorks.jsx
│ │ ├── Audience.jsx
│ │ ├── Vision.jsx
│ │ ├── Roadmap.jsx
│ │ ├── Contribute.jsx
│ │ └── Footer.jsx
│ ├── App.jsx # Main app component
│ ├── main.jsx # Entry point
│ ├── App.css
│ └── index.css
├── public/ # Static assets
├── index.html # HTML template
└── package.json
The website content is stored in individual component files. To update:
- Hero/tagline:
src/components/Hero.jsx - Mission statement:
src/components/Mission.jsx - How it works:
src/components/HowItWorks.jsx - Roadmap:
src/components/Roadmap.jsx - Call to action:
src/components/Contribute.jsx
-
Build the site locally:
npm run build
-
Upload
dist/folder contents to your web root (usuallypublic_html/):- Via FTP (FileZilla, etc.)
- Via Hostinger File Manager
- Via git deployment
-
The
.htaccessfile inpublic/will automatically be included in the build to handle:- SPA routing (redirects all routes to index.html)
- Gzip compression
- Cache headers for performance
-
Done! Visit your domain to see the site.
The site can also be deployed to:
- Netlify - Automatic builds from GitHub, free SSL
- Vercel - Automatic builds from GitHub, free SSL
- GitHub Pages - Free hosting for public repos
- Cloudflare Pages - Automatic builds, global CDN
- Any static hosting service - Just upload the
dist/folder
After running npm run build, deploy the dist/ folder contents.