scutcs3 / codeview Goto Github PK
View Code? Open in Web Editor NEW在线编程笔试平台
Home Page: http://cv.tootal.xyz
License: MIT License
在线编程笔试平台
Home Page: http://cv.tootal.xyz
License: MIT License
src/api
文件夹下。https://next.router.vuejs.org/zh/guide/advanced/navigation-guards.html
进入面试者界面、面试官界面、题库界面、题目界面前判断登陆状态。
未登陆则重定向到登陆界面。
预计先实现好面试者提交代码,面试官这边能看到提交的代码。
实现完后再考虑面试官或者面试者其中一方写代码的时候另一方编译器中能够实时同步对方的代码
目前后端调试如果本地没有配置数据库环境无法运行,预期改成报错,而不是直接崩溃。
~/codeview/backend % npm run serve
> [email protected] serve
> node ./bin/www
http://localhost:8080
undefined
[SELECT ERROR]: connect ECONNREFUSED 127.0.0.1:3306
/Users/bytedance/codeview/backend/routes/problems.js:13
data: result[0],
^
TypeError: Cannot read property '0' of undefined
at Query.<anonymous> (/Users/bytedance/codeview/backend/routes/problems.js:13:25)
at Query.<anonymous> (/Users/bytedance/codeview/backend/node_modules/mysql/lib/Connection.js:526:10)
at Query._callback (/Users/bytedance/codeview/backend/node_modules/mysql/lib/Connection.js:488:16)
at Query.Sequence.end (/Users/bytedance/codeview/backend/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
at /Users/bytedance/codeview/backend/node_modules/mysql/lib/protocol/Protocol.js:404:18
at Array.forEach (<anonymous>)
at /Users/bytedance/codeview/backend/node_modules/mysql/lib/protocol/Protocol.js:403:13
at processTicksAndRejections (internal/process/task_queues.js:75:11)
POST /tokens 404 13.795 ms - 1139
数据库计划使用mysql。
master分支有提交时自动部署前后端代码。
在面试者界面添加留言部分,参考需求文档,放在右侧。
预期实现:在components下添加Comment
组件,嵌入到Viewee Page中。
用于查看代码,提交代码仍然需要提交到github。
添加一些题目用于测试。
目前打算从TK题库爬取一些题目。
包含两个部分:控制台新建题目到题库、面试官界面新建题目。
其中面试官界面新建题目应该要能搜索已有题目、或者直接添加新题目。
登陆后需要有一个页面查看情况,暂定为概况(Overview)页面。
应该是在bin/www文件里面指定了3000端口,预期能传入一个参数--port
接收指定端口号。
用于页面跳转
方便区分版本/缓存是否更新
预期能够选择外部候选人或站内候选人。
预期能够选择外部候选人或站内候选人。
测试接口(自动和develop分支代码进行同步):http://cv-api.tootal.xyz
目前部署在本仓库的gh-pages分支,导致拉取代码速度极慢。
预计部署到scutcs3分支,对应域名为scutcs3.github.io
测试数据库连接。
捕获请求时4xx、5xx错误码,避免在控制台打印错误信息。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.