尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证The backend for SC Market
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗This repository hosts the backend for SC Market.
Please use the .env.template file to create a local .env file.
The database can be spun up using docker-compose using the default credentials in the env template. Using docker-compose will require also cloning SCMarketBot in an adjacent directory.
docker-compose up -d postgres
This project uses Knex for database migrations. Migrations are tracked automatically and provide version control for database schema changes.
To create a new migration:
npm run migrate:make <migration_name>
This will create a new timestamped migration file in the migrations/ directory with up() and down() functions.
Example:
npm run migrate:make add_user_preferences_table
To apply all pending migrations:
npm run migrate:latest
This will execute all migrations that haven't been run yet, in chronological order.
To rollback the last batch of migrations:
npm run migrate:rollback
To rollback all migrations:
npm run migrate:rollback --all
To see which migrations have been applied:
npm run migrate:status
down() function properly undoes the up() functiondown() function works before deployingThis project uses npm to manage dependencies. You can install dependencies using the npm command.
npm install
Running the project is simple and can be done with
npm run dev
You can ensure your changes build with
npm run build