Learn more in the official documentation.
Work in progress!
conda activate curve-ai- Initialize the project
pnpm run init- Development mode
pnpm run devVisit localhost:8099 to view your application
- Production build
pnpm run build
pnpm run start- Functionality and accuracy in task automation
- User adoption and engagement rates
- Integration success with existing workflows
- Client satisfaction and feedback scores
We're currently seeking pilot partners to help validate and refine our solutions. Benefits include:
- Early access to cutting-edge AI solutions
- Customized implementation support
- Reduced pricing for early adopters
- Direct input into product development
For detailed information about our solutions and implementation guides, visit our official documentation.
Need help? We're quick to respond:
- Join our Discord community
- Follow us on Twitter @marblismAI
Proprietary software. All rights reserved.
This is a modern web application built with:
- React 18 frontend
- Remix framework for server-side rendering
- Prisma for database ORM
- PostgreSQL database
- TailwindCSS for styling
- Docker for containerization
- ZenStack for access control and API generation
- tRPC for type-safe API calls
- Node.js 20+
- Docker and Docker Compose
- PostgreSQL database
- PNPM package manager
For the best development experience, we recommend using Git Bash with a Conda environment:
-
Create a new conda environment:
conda create -n curve-ai nodejs=20 -y
-
Activate the environment:
conda activate curve-ai
-
Install pnpm globally:
npm install -g pnpm
This approach provides an isolated environment with the correct Node.js version and avoids cross-platform issues between Windows and WSL.
-
Clone the repository:
git clone https://github.com/claybowl/Curve-Ai-Solutions-Web-App.git cd Curve-Ai-Solutions-Web-App -
Install dependencies:
pnpm install
-
Create a .env file based on .env.template:
cp .env.template .env
Then edit the .env file with your configuration values.
-
Start the development services:
pnpm run docker:init
-
Generate ZenStack code and initialize the database:
pnpm run crud:sync pnpm run database:sync:dev pnpm run database:seed
-
Start the development server:
pnpm run dev
If you encounter errors like "Cannot read properties of undefined (reading 'createMany')", run these commands in order:
pnpm run crud:sync
pnpm run database:sync:devThis regenerates the ZenStack schema and synchronizes the database.
When switching between Windows and WSL:
-
Delete node_modules:
rm -rf node_modules
-
Reinstall in your current environment:
pnpm install
This ensures native modules like esbuild are compiled for the correct platform.
- Set up a VPS with Ubuntu/Debian
- Install Node.js 20+, Docker, and PostgreSQL
- Clone the repository
- Build the application:
pnpm run build
- Start with PM2 or similar process manager:
pm2 start npm --name "curve-ai-app" -- start
- Connect your GitHub repository to Vercel
- Set the following:
- Framework Preset: Remix
- Build Command:
pnpm run build - Output Directory:
build/ - Install Command:
pnpm install
- Set up environment variables from your .env file
- Deploy
- Create a new Web Service on Render
- Connect to your GitHub repository
- Configure:
- Build Command:
pnpm install && pnpm run build - Start Command:
pnpm run start
- Build Command:
- Add your environment variables
- Deploy
This project includes Docker configuration for easy containerized deployment.
-
Build the Docker image:
docker build -t curve-ai-app . -
Run the container:
docker run -p 8099:8099 --env-file .env curve-ai-app
This application can be deployed on Google Cloud Platform:
-
Database: Use Cloud SQL for PostgreSQL
- Create a PostgreSQL instance in Google Cloud Console
- Set up a database named "api"
- Configure secure access with Cloud SQL Auth Proxy
-
Web App: Deploy using Cloud Run (recommended) or App Engine
- Cloud Run provides a serverless container environment
- App Engine offers a managed platform for Node.js apps
-
Environment Variables: Use Secret Manager for sensitive information
-
Google Auth: The existing Google Authentication integration works seamlessly with GCP
- For production, use a managed PostgreSQL service (AWS RDS, DigitalOcean Managed Databases, etc.)
- Update your DATABASE_URL in the environment variables
- Run migrations before deployment:
pnpm run database:sync
Ensure these environment variables are set for production:
NODE_ENV=productionBASE_URL- Your production URLSERVER_AUTHENTICATION_SECRET- A strong secret keySERVER_DATABASE_URL- PostgreSQL connection stringSERVER_OPENAI_API_KEY- For AI functionality
- Set up application monitoring with services like Sentry or New Relic
- Configure regular database backups
- Implement a CI/CD pipeline for automated deployments
For any deployment issues, please refer to the official documentation or open an issue on GitHub.
