Giter Site home page Giter Site logo

maxwaiyaki / zabo-front-reactjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sparcs-kaist/zabo-front-reactjs

1.0 1.0 0.0 84.92 MB

Image and Poster Advertising Service @ KAIST

Home Page: https://zabo.sparcs.org

License: MIT License

HTML 0.89% CSS 2.13% JavaScript 85.68% Python 1.17% Shell 0.51% TypeScript 8.78% SCSS 0.85%

zabo-front-reactjs's Introduction




Logo

ZABO with modern JS, designed and developed by SPARCS
Go to ZABO

About

ZABO helps KAIST students based individuals or clubs advertising themselves via web based platform. While this service is open for public, only approved groups are able to post images. Please submit your request in order to create a new group via our website.

This Project is being maintained by SPARCS KAIST

We're expecting our users post there recruiting announcements, performance schedules, and any other events advertisments. However, there's no strict restrictions on contents that users upload.

Please contact us to get more detailed information.

If you're looking for backend codes, you can find it in here

Previews

upload

Table of Contents

Prerequisites

You’ll need to have Node 8.10.0 or local development and production machine. You can use nvm (macOS/Linux) or nvm-windows to easily switch Node versions between different projects. Node.js. That's all you need.

node -v // v10.16.3

Getting Started

Running Development Server

npm

Run webpack dev server

npm install // Installing dependencied with node js package manager
npm start // Refer to react-scripts(https://www.npmjs.com/package/react-scripts) to learn more about this.
// Follow the instructions on terminal

yarn

Run server

yarn // Installing dependencied with node js package manager
yarn start // Refer to react-scripts(https://www.npmjs.com/package/react-scripts) to learn more about this.
// Follow the instructions on terminal

Available Scripts

Storybook

yarn storybook

cli gui

Generate Component

Using React hook, this script is no longer used.

yarn generate [% component_architecture %] [% component_name %] "[% options %]"
  • component_architecture : One of [atoms, molecules, organisms, templates, pages]
  • component_name : Captitalized first character is recommended (ex: HomePage)
  • options (optional) : Combination of characters (r : react component, s : styled component, y : storybook, c : redux container) or '*' for all. Options must be captured inside quotes (" or '). Default option is "rsy"

Post Build

yarn postbuild

Helper script, making Front-end deployment graceful.

Automatically triggered after build command finishes.

Pre-Commit

yarn precommit

Lint and rewrite staged files.

Automatically triggered before commit.

Get Ready for Production

npm

Build static files with webpack

npm install // Installing dependencied with node js package manager
npm run build  // Refer to react-scripts(https://www.npmjs.com/package/react-scripts) to learn more about this.
server -s deploy // or serve static files located in /deploy with whatever you like!
// I recommend you to set up production server with nginx. Please refer to [Deployment](#deployment) section for more.

yarn

Build static files with webpack

yarn // Installing dependencied with node js package manager
yarn build  // Refer to react-scripts(https://www.npmjs.com/package/react-scripts) to learn more about this.
server -s deploy // or serve static files located in /deploy with whatever you like!
// I recommend you to set up production server with nginx. Please refer to [Deployment](#deployment) section for more.

Proxy API Requests

Using http-proxy-middleware, all requests are proxied to localhost:6001 on which our API server is located.

Authentication

All requests sent from client are intercepted by an axios instance located in axios.js.

Axios request interceptor attaches authentication token into request header.

Built with

Folder Structure

zabo-front
├── README.md
├── LICENSE.md
├── deploy
├── public
├── node_modules
├── package.json
├── .gitignore
├── tools
│   ├── generate-component.py
│   └── moveBuildFolder.sh
├── src
│   ├── index.js - Entry point
│   ├── App.js
│   ├── boot.js - Ran before rendering app
│   │
│   ├── components - All React Components
│   │   ├── container
│   │   ├── atoms
│   │   ├── molecules
│   │   ├── organisms
│   │   ├── templates
│   │   └── pages - Please refer to atomic web design (http://bradfrost.com/blog/post/atomic-web-design/)
│   │
│   ├── lib - Libraries and utility functions
│   ├── hoc - Higher order components (https://reactjs.org/docs/higher-order-components.html)
│   ├── locales - Translation files /en, /kr
│   ├── static - Static files such as images
│   └── store - Redux files
└── index.js  - Entry point

Deployment

First, build static files with webpack regarding to Get Ready for Production And then follow zabo-server-nodejs deployment guide-line

Contributing

Please checkout CONTRIBUTING.md for more.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

FOSSA Status

Acknowledgments

We're renewing following projects.

Zabo-WEB and Zabo-API

zabo-front-reactjs's People

Contributors

jungdj avatar choiyounseo avatar pa-rang avatar sanghou avatar dependabot[bot] avatar helloworld017 avatar litmify avatar pacokwon avatar junbyeol avatar fossabot avatar sni-j avatar

Stargazers

Roman avatar

Watchers

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