Giter Club home page Giter Club logo

bmazon's Introduction

Bmazon

$\tt{Bmazon}$ 意为 $\tt {BUAA's \ Amazon}$, 是一款北航校内交易平台。 $\tt{Bmazon}$ 的目的是为了方便同学之间的交易,帮助同学们处理不需要的物品,为校内生活提供更加便捷的购物方式。

项目说明

本项目采用了前后端分离开发模式,前端采用Vue2+Element-UI,后端采用Rails实现。该项目实现了一个统一、透明、可靠的校内交易平台。在这个平台上,用户除了能购买商品,也可以通过学生认证进一步成为商家,售卖实体商品、虚拟商品或二手闲置物。同时,该项目还设置了“种草分享”栏目,用户可以发文章推荐自己心仪的商品,店铺也可以发文章为自己代言,更好的满足同学们的各种需求。

运行方式

项目包括frontendbackend两个分支。

frontend分支是Vue前端项目。在该分支下,需要通过npm install或者cnpm install命令安装依赖,然后通过npm run serve启动脚手架,最后访问localhost:8081即可看到前端效果。如果想要对项目进行编译,可以使用npm run build命令,编译好的html、js、css文件会放到dist目录下。

backend分支是Rails后端项目。在该分支下,需要先运行下面几个命令对运行环境进行初始化——bundle install加载gem包,rails avtive_storage:install加载上传图片的功能, rails db:migrate创建数据库。之后运行rails s -b 0.0.0.0即可启动该项目。如果想要单独测试某个接口,直接按照开发文档中的API使用postman或者curl发起请求即可。另外,我已经提前将前端编译好的文件拷贝到了public文件夹下,直接访问localhost:3000/就可以看到最终效果。

效果展示

我将该项目部署到aliyun服务器上,访问地址为http://59.110.234.93:3000。直接注册默认身份为普通用户,如果想要体验管理员相关功能,可以使用这个账号进行登录——用户名:czh 密码:123456

bmazon's People

Contributors

hyggge avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.