1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-12 11:16:34 +00:00
actix-web/examples/web-cors/README.md

16 lines
226 B
Markdown
Raw Normal View History

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