Skip to content

Commit

Permalink
Merge pull request #28 from MiguelMRojas/development
Browse files Browse the repository at this point in the history
Deploy
  • Loading branch information
SilviaPabon committed Nov 9, 2022
2 parents 2b5af9e + 3863b7c commit 70a1e30
Show file tree
Hide file tree
Showing 48 changed files with 3,337 additions and 22 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
**/node_modules
**/.env
**/.husky
**/.eslintcache
**/.eslintcache
**/dist
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

Back-end repositorie is available [here](https://github.com/SilviaPabon/buenavida-backend).

## Requirements

1. Running golang API (Back-end repository)
2. `.env` file created at `src/` with the following variables:

```
VITE_API_HOST=yourhost
```

If you are running the project in local environment, then, `VITE_API_HOST`is `localhost:3030`

## Avilable node scripts

Run in development / watch mode
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>Buenavida</title>
</head>
<body>
<div id="root"></div>
Expand Down
24 changes: 24 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[[redirects]]
from = "/"
to = "/index.html"
status = 200

[[redirects]]
from = "/login"
to = "/index.html"
status = 200

[[redirects]]
from = "/signup"
to = "/index.html"
status = 200

[[redirects]]
from = "/*"
to = "/index.html"
status = 404

[[redirects]]
from = "/cart"
to = "/index.html"
status = 200
Loading

0 comments on commit 70a1e30

Please sign in to comment.