Comments (1)
This project is still in the development and testing stage, but a temporary solution can be provided:
This project does need a back-end server as the API provider. Since the project is still in the development and testing stage, you can temporarily use the remote back-end server provided by me. You will not need to build the back-end server yourself.
The following is the configuration method:
- Use tool mkcert to generate development certificates for the
localhost
domain name. This will result in a cert file and a key file. - Rename the cert file to
localhost.pem
- Rename the key file to
localhost-key.pem
- Move these two files to the project root directory
- Open the project root directory
- Open the
proxy.config.json
file and replace all the original configuration of the file with the following configuration:
{
"/onchat": {
"target": "https://api.chat.hypergo.net",
"secure": "false",
"logLevel": "debug",
"changeOrigin": true,
"pathRewrite": {
"^/onchat": ""
}
}
}
- Open the
src/environments/environment.ts
file, find socketUrl, and modify its value tohttps://api.chat.hypergo.net
, example:
export const environment = {
// Omit part of the code
socketUrl:'https://api.chat.hypergo.net',
// Omit part of the code
};
- Save all files, open the command line, and execute the command
npm run https
- Visit
https://localhost:4200
in the browser
Related information
Back-end code repository: OnChat
Front-end code repository: OnChat-Web
If you like this project, welcome to star these two code repositories! ⭐
from onchat-web.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onchat-web.