GithubHelp home page GithubHelp logo

raminmammadzada / frontend-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 1.8 MB

It is a single-page frontend application to show the CRUD skills in React

HTML 9.21% CSS 3.16% JavaScript 87.51% Shell 0.12%
react redux javascript crud-application api-client

frontend-app's Introduction

Frontend CRUD App: Player Management App

It is a single-page frontend application to show the CRUD skills in React

Built with the following tech stack

Prerequisites:

Run the API server by cloning the API server. It must start running in http://localhost:3000 in the your local machine.

IMPORTANT NOTE! The following line must be added to the CORS Policy generator in API. The following lines of code in index.js file in API must be updated.

As Is:

/* Add CORS-headers to every request */
function allowCorsMiddleware(req, res, next) {
  res.header("Access-Control-Allow-Origin", "*");
  res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
  next();
}

To Be:

/* Add CORS-headers to every request */
function allowCorsMiddleware(req, res, next) {
  res.header("Access-Control-Allow-Origin", "*");
  res.header("Access-Control-Allow-Methods", "POST, PUT, GET, DELETE");
  res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
  next();
}

Setup

Clone the repo by typing

git clone https://github.com/RaminMammadzada/frontend-app.git

Install packages with

  npm install

Start server with:

  npm start

Runs the app in the development mode.
Open http://localhost:3001 to view it in the browser.

Unit tests

Testing is not done yet for the project, though after it is done you can type the following command to test.

npm run test

Author

๐Ÿ‘ค Ramin Mammadzada

Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page

Show your support

Give a star if you like this project!

frontend-app's People

Contributors

raminmammadzada avatar

Watchers

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