This is the main repository for both the marketing site and dashboard for toddagriscience.com.
Due to this repository being a monorepo, documentation for each workspace is contained in the respective README.md file. Additionally, you can refer to Colossus, our repository specifically for documentation, or the .github folder for more information.
- Node.js: 18.0.0 or higher
- Bun: Latest stable version
-
Clone the repository
git clone https://github.com/toddagriscience/Nightcrawler.git cd Nightcrawler -
Use correct Node.js version (if using nvm)
nvm use
-
Install dependencies
bun install
-
Choose the workspace you need
apps/sitecontains the Next.js marketing site and customer platform.apps/sanitycontains the Sanity Studio.packages/dbcontains the shared database schema, queries, migrations, and local DB tooling.
- Setup environment variables
Copy any required environment variables from apps/site/env.example to apps/site/.env.local and update any empty values as necessary.
If you need to use a database: refer to CONTRIBUTING.md's First-Time Setup.
-
Start development server
bun run dev:site
-
Open in browser
http://localhost:3000
-
Start Storybook
bun run storybook
-
Open Storybook in browser
http://localhost:6006
Run the full validation pipeline to ensure everything works:
bun validate