Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ravid7000/save-n-graph-svelte
https://github.com/ravid7000/save-n-graph-svelte
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ravid7000/save-n-graph-svelte
- Owner: ravid7000
- Created: 2023-10-16T19:02:49.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-18T10:44:58.000Z (about 1 year ago)
- Last Synced: 2023-10-19T08:49:49.796Z (about 1 year ago)
- Language: Svelte
- Size: 241 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pokemon App using Sveltekit
## Project structure
```
src/
└── lib/
├── constants/
│ ├── // Directory for common constants
│ └── pokemon.ts
├── services/
│ ├── // Directory for common services
│ ├── pokemon.ts
│ └── favorites.ts
├── stores/
│ ├── // Directory for global stores
│ └── favorites.ts
├── ui/
│ ├── // Directory for common components
│ ├── Alert
│ ├── Article
│ ├── Button
│ ├── Icons
│ ├── Layout
│ ├── Sidebar
│ ├── Spinner
│ ├── Styles
│ └── TextInput
├── utils/
│ ├── // Directory for common utils
│ ├── pokemonStats.ts
│ └── yupParser.ts
└── routes/
├── dashboard/
│ ├── // Protected route with user session
│ ├── api
│ ├── favorites
│ ├── pokemon
│ ├── +layout.svelte
│ └── +page.svelte
├── login
├── logout
├── signup
├── +layout.svelte
└── +page.svelte
```## Developing
Installed dependencies with `npm install` (or `pnpm install` or `yarn`):
```bash
npm run dev
```Create .env file from .env.example or just add these environment variables in order to use supabase database
```
PUBLIC_SUPABASE_URL=""
PUBLIC_SUPABASE_ANON_KEY=""
```Start a development server
```bash
# or start the server and open the app in a new browser tab
npm run dev -- --open
```## Building
To create a production version of your app:
```bash
npm run build
```You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.