Web de frases
#SvelteKit
Everything you need to build a Svelte project, powered by create-svelte
.
If you're seeing this, you've probably already done this step. Congrats!
# create a new project in the current directory
npm init svelte
# create a new project in my-app
npm init svelte my-app
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.
#How to
autores: 1438 frases: 10619 tags: 858
npm list -g --depth 0
nvm list
nvm install [node version]
nvm use [node version]
- webpack serve
- webpack --mode production
- webpack-dev-server --open --mode development
- webpack-dev-server --mode development
- webpack-dev-server --inline --hot
- npm run dev
git clone [email protected]:zrobit/frases.git web
sudo service mongod start
sudo service mongod stop
> show dbs
mongodump -d <database_name> -o <directory_backup>
mongorestore -d <database_name> <directory_backup>
sudo apt-get update
sudo apt-get install nginx
sudo systemctl stop nginx
sudo systemctl start nginx
sudo systemctl restart nginx
sudo systemctl reload nginx
npm install --only=prod
npm install --only=dev
sudo npm install -g gulp pm2
npm run build:prod
npm run build:gulp
NODE_ENV=production pm2 start src/server
scp -r <path/to/file/or/dir> user@<remote_host>:<remote_path>
scp -r <user>@<remote_host>:/path/to/remote/dir/ /path/to/dir/
#Data base flags
- isDeleted
- isPerson
isDeleted | 0 | 0 | 0 | 1 |
---|---|---|---|---|
isPerson | 0 | 0 | 1 | 0 |
--------- | --- | --- | --- | --- |
isAdage | 0 | 1 | 0 | 0 |
--------- | --- | --- | --- | --- |
y | 1 | 0 | 0 | 0 |
--------- | --- | --- | --- | --- |
|default | 0 | 0 | 1 | 0 | = 2
|ejm x | 0 | 0 | 1 | 0 | = 2 |ejm y | 0 | 1 | 1 | 1 | = 7 |ejm z | 1 | 0 | 1 | 0 | = 10
- isDeleted
- isAdage
isDeleted | 0 | 0 | 0 | 1 |
---|---|---|---|---|
isAdage | 0 | 0 | 1 | 0 |
--------- | --- | --- | --- | --- |
|default | 0 | 0 | 0 | 0 | = 0
HOST=localhost PORT=3000 pm2 start ./build/index.js --name fr