DreadedHippy / solid-example-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solid JS Example project

Simple e-commerce project made with solid-js and tailwind CSS

Running the project

Prerequisites

Instructions

  • Clone the git repo
  • Navigate to the cloned directory
  • In the terminal run npm i to install all required dependencies
  • Run npm run dev to start the dev server on http://localhost:3000
  • Run json-server -w -p 4000 ./data/db.json to run the fake JSON Rest API on port 4000
  • Enjoy đź’«

Usage

Those templates dependencies are maintained via pnpm via pnpm up -Lri.

This is the reason you see a pnpm-lock.yaml. That being said, any package manager will work. This file can be safely be removed once you clone a template.

$ npm install # or pnpm install or yarn install

Learn more on the Solid Website and come chat with us on our Discord

Available Scripts

In the project directory, you can run:

npm run dev or npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.

npm run build

Builds the app for production to the dist folder.
It correctly bundles Solid in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Deployment

You can deploy the dist folder to any static host provider (netlify, surge, now, etc.)

About


Languages

Language:TypeScript 77.7%Language:CSS 11.8%Language:HTML 7.1%Language:JavaScript 3.4%