This project was created using Microsoft Web Template Studio.
The best way to launch the application is using the Visual Studio Code Tasks. In the vscode/tasks.json
file you can find all the tasks configured for this project.
To launch a task click on the menu Terminal > Run Task
and select the task to launch (or press Ctrl+Shift+P
and choose the Tasks:Run Task
command).
To run the project:
- Install dependencies using
Install dependencies
task. - Start development app using
Start App
task.
.
├── .vscode/ - Visual Studio Code configuration files
├── backend/ - Backend App
│ ├── routes/ - Handles API calls for routes
│ ├── scripts/ - scripts to publish
│ ├── app.js - Adds middleware to the express server
│ ├── constants.js - Defines the constants for the endpoints and port
│ └── server.js - Configures Port and HTTP Server
├── frontend/ - Frontend App
│ ├── public/ - public static files
│ ├── scripts/ - scripts to publish
│ ├── src/ - react app folder
│ │ ├── components - React components for each page
│ │ ├── App.js - React routing
│ └─└── index.js - React root component
└── README.md
The frontend is based on create-react-app.
The most important scripts in the package.json
are:
- start: serves the frontend in development on http://localhost:3000/.
- build: Builds the app for production to the
build
folder. - publish: Builds the app for production and moves the output to the
publish
folder. - test: Launches the test runner in the interactive watch mode.
To start the frontend application manually:
- Open a terminal and navigate to the
frontend
folder path. - Use
yarn install
ornpm install
to install frontend dependencies. - Use
yarn start
ornpm start
to start frontend app in development.
The backend is based on Express Generator.
The most important scripts in the package.json
are:
- start: serves the backend in development on http://localhost:3001/.
- publish: copies the backend files to the
publish
folder.
To start the backend application manually:
- Open a terminal and navigate to the
backend
folder path. - Use
yarn install
ornpm install
to install backend dependencies. - Use
yarn start
ornpm start
to start backend app in development.
To deploy the application in an Azure App Service follow the deployment instructions:
Consider adding authentication and securing backend API's by following Azure App Service Security.
- React - https://reactjs.org/
- React Router - https://reacttraining.com/react-router/
- Express - https://expressjs.com/
- Bootstrap CSS - https://getbootstrap.com/