Skip to content

Morin3/solid-quickstar-.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

55 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

SolidStart

Netlify + Solid

A Solid Quickstart template that will get you started with everything you need to build a Solid project, powered by solid-start;

Click the below button to quickly create a new repo, create a new Netlify project, and deploy!

Deploy to Netlify Button

Table of Contents

Project Structure

Inside of your Solidjs project, you'll see the following folders and files:

/
โ”œโ”€โ”€ public/
โ”‚   โ””โ”€โ”€ favicon.ico
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ””โ”€โ”€ Counter.css
โ”‚   โ”‚   โ””โ”€โ”€ Counter.tsx
โ”‚   โ””โ”€โ”€ routes/
โ”‚       โ””โ”€โ”€ [...404].tsx
โ”‚       โ””โ”€โ”€ index.tsx
โ”œโ”€โ”€ entry-client.tsx
โ”œโ”€โ”€ entry-server.tsx
โ”œโ”€โ”€ root.css
โ”œโ”€โ”€ root.tsx
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ vite.config.json

Getting Started

If you want to get started locally, you can clone the project, install the dependencies and run the dev command!

git clone https://github.com/netlify-templates/solid-quickstart.git
cd solid-quickstart
npm install
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

Solid apps are built with adapters, 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 adapter, add it to the devDependencies in package.json and specify in your vite.config.js.

Deploying using the Netlify CLI

  • Install the Netlify CLI globally npm install netlify-cli -g

  • Run npm run build

  • Then use the netlify deploy for a deploy preview link or netlify deploy --prod to deploy to production

Here are a few other ways you can deploy this template:

  • Use the Netlify CLI's create from template command netlify sites:create-template solid-quickstart which will create a repo, Netlify project, and deploy it

  • If you want to utilize continuous deployment through GitHub webhooks, run the Netlify command netlify init to create a new project based on your repo or netlify link to connect your repo to an existing project

Hope this template helps :) Happy coding ๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ’ป!