GithubHelp home page GithubHelp logo

lpyedge / activate-technical-test-2022 Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 1.54 MB

Time Limit: 48 hours from the time you submit the Assessment. Your friend Bob has a bakery. Due to recent Covid, his decided to start an online store. Having adequate experience with Software development, you decided to help him create the MVP. Requirements Frontend Backend RESTful API Items listing page; Item detail page; Item add/update page; Attributes: ID, Name, Price Bonus Your friend is quite worried about the security of the project. As a lay-man; your friend doesn't know anything about XSRF attacks, SQL injections, input validations, inadequate/excess logging. (OWASP top 10) Optional Requirements (Senior positions: This will be an additional requirements instead of optional; you may pick minimum of 3 items to work on) Extra points for: Good frontend design (frontend) Usage of database wrapper โ€“ ORM (backend) Usage of container technologies such as Dockers or Kubernetes Usage of cloud technologies such as AWS, GCP or Azure Usage of functional components - (React) Good coverage of Unit, Functional, Integration, E2E Tests How to submit Please upload the code for this project to GitHub, and post a link to your repository below. Detailed instructions in README file on how to run your project; Any information that you want to highlight to us. Select the language that is appropriate for the role you applied for; i.e. .Net + React; please select C# for your Backend; ReactJS/ReactNative for your frontend.

C# 66.18% Dockerfile 0.14% HTML 14.68% JavaScript 13.21% CSS 5.79%

activate-technical-test-2022's Introduction

Run the project in source code

  • Use Visual Studio 2022 to open the Bakery.sln file in the root directory;
  • Select the project Bakery.Site and run it;
  • Open http://localhost:5050 with your browser.
  • The project will generate test data when it starts for the first time.

Docker way to run the project

  • Start the command line and go to the project Bakery.Site directory (containing the Dokerfile file);
  • Run the command docker build -f Dockerfile -t bakerysite/test . && docker run -p 5050:80 --name bakerysite_test bakerysite/test
  • Open http://localhost:5050 with your browser
  • Test data will be generated when the project starts for the first time

Product display interface

You can view the product list and product details

You can communicate with Bob to order products through the email button at the bottom right corner of the display screen (requires customer's computer to have email app)

Quickly switch the template of the product display interface to see the display effect:

http://localhost:5050/?template=1
http://localhost:5050/?template=2

The login address for the admin backend

http://localhost:5050/admin

Account: Bob
Password: Bob's_Bakery

Please pay attention to the letter case, the account password does not contain spaces

You can change the basic information of the website in the admin backend:

Site Name Website description Website Logo Customer Service Email Website template (currently there are two sets of templates)

Management background can achieve the operation of the product:

Products can be temporarily hidden and not displayed on the display page Commodities can be freely uploaded and modified icons Commodity can set the price and cost to facilitate later sales bookkeeping

important data file list:

System configuration file
/App_Data/Config.json

Sqlite database file
/App_Data/Data.db

Uploaded files directory
/Upload

activate-technical-test-2022's People

Stargazers

 avatar  avatar  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.