Giter Club home page Giter Club logo

ThxJSer

Parcel Build Status Latest Stable Version Language React version License

What is ThxJSer

ThxJSer is a Single Page Application (SPA) frameworks

- a toolkit - for people who build web sites using javaScript and React.

What is SPA

Different from traditional server side rendering(SSR), SPA is a client side render(CSR) pattern.

SPA is separation of front-end and backend, making division clear.

Hence, you can deploy the frontend(views) without worrying about backend's language.

SPA load data dynamically from backend by using Ajax request(API call), this capability makes it no need to wait entire page's extra reloading.

So, SPA provide the faster performance and easily content render with APIs' JSON data.

Live Demo

Demo : https://thxjser.github.io/


sign in email : [email protected]
sign in password : 88888888

ThxJSer benefits

ThxJSer is a CSR(Client Side Render) pattern :

  • Faster speed & performance, shorter rendering times
  • Efficient caching, doesnโ€™t have to reload entire page
  • Simple, without worrying about the backend, and ThxJSer is light-weight
  • Easy, easy to develop components and debug
  • Support page's history change event handle!!!

ThxJSer lets you creatively focus on your front-end project!

ThxJSer requires zero configuration!!

ThxJSer is dedicated to all the front-end and js engineers, thanks y'all!

Installation

  1. Run Requirements
  • Install nodejs version 9.11 or newer is recommended.
  • Install npm version 5.6 or newer is recommended.
  1. Copy the 3 items [ index.html, src folder, package.json ] to your project folder and command run
$ cd <your project folder>

$ npm install

wait installed...ok

$ npm start

wait built...ok

That's it!

  1. Now, you can access http://localhost:8888. If you want to change others listen port, config is in the package.json.

Usage

1. Skill Requirements

  • Basic HTML DOM, CSS, JavaScripts(ES5, ES6).
  • Concept of js' callback function, Async/Sync/Promise knowledge.
  • Components, life cycle, hook of React, and Redux pattern.

2. Development Guide

If you want to know more develop's guideline,

CRUD instances are mostly in the src/pages/TodoList.jsx, plz refer to this file.


Files Description Examples
src/Main.jsx Page loader, and handle the pages' rendering
src/pages/*.jsx Pages with different responsibilities SignIn, SignUp, TodoList...
src/components/*.jsx Small components for common use in most pages AlertDialog, Copyright, MyDatePicker...
src/service/*js Handle api calls TodoListApi, UserApi
dist/service/* Bulid result index.html, src.xxxxxxxxx.js

3. The below guideline is provided for your reference.

Resources, User Guide & Reference

Theme Description Link
Free Resource Page templates - you can download open-source code from mui 1. https://mui.com/material-ui/getting-started/templates/
2. (free at the bottom) https://mui.com/store/?utm_source=docs&utm_medium=referral&utm_campaign=templates-store
Free Resource Component templates - you can download open-source code from mui https://mui.com/material-ui/
JS JS ES6 tutorial https://www.w3schools.com/js/js_es6.asp
JS Demystifying JavaScript Closures, Callbacks and IIFEs https://www.sitepoint.com/demystifying-javascript-closures-callbacks-iifes/
JS Aysnc/sync, promise tutorial https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function
Hooks React hooks tutorial https://reactjs.org/docs/hooks-state.html
Hooks Redux hooks tutorial https://redux.js.org/tutorials/essentials/part-1-overview-concepts#redux-terms-and-concepts
Input Form React-hook-form document https://react-hook-form.com/api/useform/register
Input Form Yup form validation lib document https://github.com/jquense/yup
Input Form Yup validation live demo https://codesandbox.io/s/react-hook-form-validation-yup-mrv28?file=/src/index.js
Input Form Yup validation tutorial https://dev.to/franciscomendes10866/react-form-validation-with-react-hook-form-and-yup-4a98
Datetime Handle Day.js date-time lib document https://github.com/iamkun/dayjs
Api Calls Axios (http request/ajax) lib document https://github.com/axios/axios#axios-api
Built Tool Parceljs document https://parceljs.org/getting-started/webapp/
SPA Intro What are Single Page Applications https://geekflare.com/single-page-applications/

Acknowledgement

ThxJSer powered by Axios, Day.js, Material UI, Parcel, React, React Hook Form, Redux and Yup. Thank you all very much.

Particular thanks Github, Google, Node.js, NPM, Parcel, React, Stack Overflow.

License

This code has been developed and maintained by ThxJSer from October 2022.

If you discover vulnerability security issues, please send e-mail to [email protected] , thank you.

ThxJSer framework is open-source, licensed under the MIT license.

ThxJSer's Projects

thx-event-center icon thx-event-center

Front-end MVEC architecture, let frontend develop just like MVC framework.

thxjser icon thxjser

ThxJSer is a Single Page Application (SPA) frameworks - base on React.

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.