https://github.com/jescalada/instayum
Rediscover the joy of cooking. Powered by Google Cloud, MongoDB Atlas, Vue and Nest.js.
https://github.com/jescalada/instayum
google-appengine google-cloud mongodb mongodb-atlas nestjs vuejs webspeech-api
Last synced: 5 months ago
JSON representation
Rediscover the joy of cooking. Powered by Google Cloud, MongoDB Atlas, Vue and Nest.js.
- Host: GitHub
- URL: https://github.com/jescalada/instayum
- Owner: jescalada
- License: mit
- Created: 2023-05-27T22:40:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-09T21:55:41.000Z (over 2 years ago)
- Last Synced: 2025-01-17T06:46:25.536Z (about 1 year ago)
- Topics: google-appengine, google-cloud, mongodb, mongodb-atlas, nestjs, vuejs, webspeech-api
- Language: Vue
- Homepage: https://instayum.uw.r.appspot.com/
- Size: 11.3 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# InstaYum!

### Rediscover the joy of cooking.
Powered by Google Cloud, MongoDB Atlas, Vue and Nest.js.
## Requirements
To launch the backend locally, an `.env` file with the following structure is required
(in the backend directory) to launch the app:
```
MONGODB_USER=
MONGODB_PASSWORD=
MONGODB_URI=
MONGODB_DBNAME=
PORT=
```
## Launch the app locally
1. Create an `.env` file in the backend directory, and fill it in with your MongoDB connection data and the port.
2. Open a terminal in the root directory and type:
```
cd instayum-front
npm i
npm run dev
```
3. Open another terminal in the root directory:
```
cd instayum-back
npm i
npm run start:dev
```
4. Finally, go to `http://localhost:3000/` in your browser.
## Deploy the app
If you would like to deploy the app to Google Cloud:
1. Add an `app.yaml` file in the backend directory with the following structure:
```
runtime: nodejs18
env_variables:
MONGODB_USER: ''
MONGODB_PASSWORD: ''
MONGODB_URI: ''
MONGODB_DBNAME: ''
service: backend
env: standard
```
2. Add an `app.yaml` file in the frontend directory with the following structure:
```
runtime: nodejs18
handlers:
# Serve all static files with urls ending with a file extension
- url: /(.*\..+)$
static_files: dist/\1
upload: dist/(.*\..+)$
# catch all handler to index.html
- url: /.*
static_files: dist/index.html
upload: dist/index.html
env_variables:
VITE_API_URL: ""
```
3. Using the terminal/Google Cloud CLI:
```
gcloud app deploy instayum-back instayum-front
```