Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

file upload & download

License

NotificationsYou must be signed in to change notification settings

Rynxiao/file-examples

Repository files navigation

  • File Upload

    upload by chunkupload

    upload in secondupload in second

  • File Download

Tech Stack

  • node
  • express
  • sequelize
  • tailwind css
  • jquery [🤮🤮🤮I don't want to write template code with jquery anymore.]
  • ejs
  • webpack
  • docker
  • heroku

Run

chmod -R +x ./scripts
  • Local
npm run db:startnpm run build:watchnpm start# stop dbnpm run db:stop
  • Prod
npm run start:prod# downnpm run stop:prod
  • Heroku
  1. createheroku.yml
build:docker:web:Dockerfilerun:web:npm run start:heroku
  1. modifypackage.json
{"scripts": {"start:heroku":"NODE_ENV=heroku node ./bin/www"  }}
  1. deploy to heroku
# create heroku reposheroku create files-examplesheroku stack:set container# when add addons, remind to config you billing card in heroku [important]# add mysql addonsheroku addons:create cleardb:ignite# get mysql connection urlheroku config| grep CLEARDB_DATABASE_URL# will echo => DATABASE_URL: mysql://xxxxxxx:xxxxxx@xx-xxxx-east-xx.cleardb.com/heroku_9ab10c66a98486e?reconnect=true# set mysql database urlheroku config:set DATABASE_URL='mysql://xxxxxxx:xxxxxx@xx-xxxx-east-xx.cleardb.com/heroku_9ab10c66a98486e?reconnect=true'# add heroku.js to src/db/config folder# use the DATABASE_URL which you get form prev step to config the js filemodule.exports = {  HOST:'xx-xxxx-east-xx.cleardb.com',  USER:'xxxxxxx',  PASSWORD:'xxxxxx',  DATABASE:'heroku_9ab10c66a98486e',};# push source code to remotegit push heroku master

About

file upload & download

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp