Everything you need to build a Solid project, powered by solid-start;
# create a new project in the current directory
npm init solid@latest
# create a new project in my-app
npm init solid@latest my-appOnce you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --openSolid apps are built with presets, which optimise your project for deployment to different environments.
By default, npm run build will generate a Node app that you can run with npm start. To use a different preset, add it to the devDependencies in package.json and specify in your app.config.js.
This project uses Upstash Redis to store and track blog post view counts. Upstash works with any hosting provider (Railway, Vercel, Netlify, etc.) and has a generous free tier!
See UPSTASH_SETUP.md for detailed setup instructions.
- Create a free account at https://console.upstash.com/
- Create a new Redis database
- Copy your
UPSTASH_REDIS_REST_URLandUPSTASH_REDIS_REST_TOKEN - Add them to your
.envfile locally (copy fromenv.example) - Add them as environment variables in Railway:
- Go to your Railway project → Variables tab
- Add
UPSTASH_REDIS_REST_URLandUPSTASH_REDIS_REST_TOKEN
- Deploy and enjoy real-time view counts!