Code Monkey home page Code Monkey logo

cra-template-with-express-server's Introduction

About

This is the base template for creating Simple React app with express server by extending Create React App webpack configurations.

If you don't specify a template (for example, --template with-express), Simple React app will be created by default.

For more information, please refer to:

  • Getting Started โ€“ How to create a new app.
  • User Guide โ€“ How to develop apps bootstrapped with Create React App.

Install

npx create-react-app <your-app-name> --template with-express

Command

Don't do yanr start. Instead, refer to the following commands. Navigate to your-project by cd your-project and run the following commands:

  • To Run Server - npm run server or yarn run server
  • To Run Client - npm run client or yarn run client
  • To Run Server with Client - npm run server-with-client or yarn run server-with-client

Development

  • For developing frontend app, go to the frontend folder using cd frontend command and continue your development as you would do for your traditional frontend app.
  • For developing backend app, go to the backend folder using cd backend command and continue your development as you would do for your traditional backend app.
  • To view frontend app, go to http://localhost:3000
  • Backend is hosted at http://localhost:9000
  • To change the port of your backend app, navigate to backend/bin/, open www and change port to your desirable port at line 15. Make sure to change your proxy object in your frontend package.json.

cra-template-with-express-server's People

Contributors

nishant-sethi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cra-template-with-express-server's Issues

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.