npm init vite
and selecting the svelte
option or — if you want a full-fledged app framework — use SvelteKit, the official application framework for Svelte.This is a project template for Svelte apps. It lives at https://github.com/sveltejs/template.
To create a new project based on this template using degit:
npx degit sveltejs/template svelte-app
cd svelte-app
Note that you will need to have Node.js installed.
En caso de usar el servicio en python:
$ sudo pip install virtualenv
$ virtualenv -p python3 <<nombre_ambiente>>
$ cd <<nombre_ambiente>>
$ source bin/activate
Arrancar aplicación con servidor Werkzeug:
$ cd <<carpeta-proyecto>>
$ pip install -r requirements.txt
$ python app.py
Arrancer aplicación con servidor GreenUnicorn:
$ cd <<carpeta-proyecto>>
$ pip install -r requirements.txt
# Sin logs ni reload
$ gunicorn app:APP -w 6 -b 0.0.0.0:3000
# Con logs y reload
$ gunicorn app:APP -w 6 -b 0.0.0.0:3000 --reload --access-logfile -
$ pylint <archivo>.py --reports=yes
$ pylint **/*.py --reports=yes
https://www.googleapis.com/oauth2/v1/userinfo
{
"id": "7891273891273891273",
"email": "[email protected]",
"verified_email": true,
"name": "alkdjfa asdlfkjasdklf",
"given_name": "alkdjfa",
"family_name": "asdlfkjasdklf",
"picture": "https://lh3.googleusercontent.com/a-/AOh14GhaGAqhpkQfOw3DRemDILu_0aq2eTvfZdkGmRVe",
"locale": "es"
}
Archivo .env
DB="sqlite:///db/demo.db" ENV="local"||"server" MAIL_PORT=465 MAIL_USER="xyz@gmail.com" MAIL_PASS="asdfas" MAIL_HOST="smtp.google.com"
Migraciones con DBMATE - accesos/sqlite3:
$ npm run dbmate:new <<nombre_de_migracion>>
$ npm run dbmate:up
$ npm run dbmate:rollback
Fuentes:
Fuentes: