https://github.com/jhenbertgit/basic-websocket-sveltekit
https://github.com/jhenbertgit/basic-websocket-sveltekit
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jhenbertgit/basic-websocket-sveltekit
- Owner: jhenbertgit
- License: mit
- Created: 2024-09-26T03:07:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-05T13:27:19.000Z (over 1 year ago)
- Last Synced: 2025-04-02T15:38:30.465Z (about 1 year ago)
- Language: TypeScript
- Size: 138 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Onboarding Development
## Requirements
- [MySQL - Utilize Laragon for easy install](https://laragon.org/download/)
- [NodeJS](https://nodejs.org/en/download/package-manager) 18+
## Setup Environment and install requirements
```bash
#Copy .env.example to .env and fill in your credentials.
cp .env.example .env
# Edit DATABASE_URL Depending on your mySQL Server. with the following format
DATABASE_URL="mysql://{user}:{password}@{server}:3306/{dbname}"
# Example without password and server is localhost db name is mydb
DATABASE_URL="mysql://root:@localhost:3306/mydb"
# Same as above but with password
DATABASE_URL="mysql://root:secret@localhost:3306/mydb"
```
## Running dev server
```bash
#1. Install dependencies
npm i
#2. For development use db push, when changes are made to the schema
npm run db:sync # This commands uses db push to sync the db with schema and generate prisma client
#4. Run dev server
npm run dev
```