RAMZIDINisoev / solid-quickstar

0 stars 0 forks source link

SolidStart

solid (3)

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

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

Hope this template helps :) Happy coding 👩🏻‍💻!