cyanxiao / casdoor-nodejs-react-example

Node.js Express + React example app for Casdoor based on casdoor-nodejs-sdk

Home Page:https://github.com/casdoor/casdoor-nodejs-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

casdoor-nodejs-react-example

This project was bootstrapped with Create React App. Then an Express server was added in the server directory. The server is proxied via the proxy key in package.json.

Using this project

  1. Clone the project, change into the directory and install the dependencies specified in package-lock.json.

    npm ci
  2. Create a .env file for environment variables in your server.

    touch .env
  3. Start the server

    You can start the server on its own with the command:

    npm run server

    Run the React application on its own with the command:

    npm start

    Run both applications together with the command:

    npm run dev

    The React application will run on port 3000 and the server port 3001.

About

Node.js Express + React example app for Casdoor based on casdoor-nodejs-sdk

https://github.com/casdoor/casdoor-nodejs-sdk

License:Apache License 2.0


Languages

Language:JavaScript 77.8%Language:HTML 14.4%Language:CSS 7.8%