1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-28 10:02:38 +01:00
actix-web/examples/web-cors/README.md

16 lines
226 B
Markdown
Raw Normal View History

2018-01-27 04:56:34 +01:00
# Actix Web CORS example
2018-01-27 04:00:26 +01:00
## start
1 - backend server
```bash
2018-01-27 04:56:34 +01:00
$ cd web-cors/backend
2018-01-27 04:00:26 +01:00
$ cargo run
```
2018-01-27 06:38:17 +01:00
2 - frontend server
2018-01-27 04:00:26 +01:00
```bash
2018-01-27 06:38:17 +01:00
$ cd web-cors/frontend
2018-01-27 04:00:26 +01:00
$ npm install
$ npm run dev
```
2018-01-27 06:38:17 +01:00
then open browser 'http://localhost:1234/'