This repository contains the source code for the TroyLabs website, built with React and deployed on Railway. Styled with Tailwind CSS.
-
Prerequisites
- Node.js (v18 or higher recommended)
- npm (comes with Node.js)
-
Installation
npm install
-
Local Development
npm run dev
This will start the development server at http://localhost:3000.
/src/components/- React components organized by feature/team/- Team-related components and data/build/- Build-related components and data
/public/- Static assets
npm run dev- Start development servernpm run build- Create production buildnpm start- Serve production build (used in deployment)npm test- Run tests
The website is automatically deployed to Railway when changes are pushed to the main branch. The deployment process:
- Runs
npm cito install dependencies - Executes
npm run buildto create the production build - Starts the server using
npm start
To add new team members:
- Update
/src/components/team/TeamData.json - Add their photo to the appropriate directory
- Follow the existing data structure format
To add new startups:
- Update
/src/components/build/StartupData.json - Add any necessary assets
- Follow the existing data structure format
- Create a new branch for your feature
git checkout -b feature/your-feature-name
- Make your changes
- Test locally
- Submit a pull request via GitHub