Git Product home page Git Product logo

fullstacktesting1's Introduction

Full Stack Development

Created with React + Redux, Django + Django Rest Framework.

Website on server: http://199.116.235.230:3000/

To start the BackEnd locally:

  1. docker-compose up -d --build

To start the FrontEnd locally:

  1. npm install
  2. npm start

How to run the system on server:

  1. npm run build
  2. serve -s build -l 3000 &
  3. docker-compose up -d --build

Approach Ideas

  1. This problem is using one table in the PostgreSQL database.
  2. In the system, there are two tabs:
  1. How to use the system:
  • The user needs to add the Key info object to the system first, by using this link: http://199.116.235.230:3000/addInfo
  • After adding fokey info into the database, then click on the first tab or go to http://199.116.235.230:3000/, the user could view all data in a table, with sorting and searching options.
  • The third tab should allow an user to extend the key's expiry time, and update description. There are two buttons to submit different actions. - Extend 24 Hours: this button only allows user to extend the key's expiry time if the user input the correct key. - Update Descriptions: this button allows user to update the description, but not extend the expiry time. - Reset: this button allows user to clear the form.
  1. Automatically Deployment:

  • Now, every time we push a change to the master branch, it will automatically deploy to the server by using GitHub Actions.
  • Deploy backend GitHub Action will finish the workflow.
  • Deploy frontend github actions will cancel at 4 minutes because after "serve -s build -n -l 3000 &", the GitHub action will not move forward. Then we need to have a timeout-minutes = 4, because in 4 minutes, the automatic deployment would be finished.
  1. GitHub Actions also have pytests (automated tests) feature and automatically revert feature.
  2. Technologies chosen: I used Django Rest Framework (python), the database is PostgreSQL, and frontend is React & Redux.
  1. Automated tests:

  1. Roughly I took 8 hours, GitHub Actions, and all other tests, I do have experiences previously, so I used my own template, then I build everything really fast.

  2. To view all GitHub Actions:

  1. The project is launched on Cybera online services. It is free for us to use. https://www.cybera.ca/

fullstacktesting1's People

Contributors

ecckaka avatar

Watchers

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