Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/espiramarvin/vue-mongo
A Vuejs app with Express Back-end & MongoDB
https://github.com/espiramarvin/vue-mongo
express nodejs vercel vuejs vuex
Last synced: about 1 month ago
JSON representation
A Vuejs app with Express Back-end & MongoDB
- Host: GitHub
- URL: https://github.com/espiramarvin/vue-mongo
- Owner: EspiraMarvin
- Created: 2021-09-15T10:15:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-28T11:10:32.000Z (over 2 years ago)
- Last Synced: 2023-03-04T10:24:29.611Z (almost 2 years ago)
- Topics: express, nodejs, vercel, vuejs, vuex
- Language: JavaScript
- Homepage:
- Size: 639 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Front-End with Vuejs & Quasar Components (app)
A Quasar Framework app.
## Prerequisites
Before we set up the app, let’s check whether Quasar CLI is globally installed on your computer. Using the terminal run:```bash
quasar -v
```If you get a command not found error, run the following command to install it:
```bash
yarn global add @quasar/cliOR
npm install -g @quasar/cli
```## Setup Instructions
In your folder workspace
### 1. git clone [https://github.com/EspiraMarvin/vue-mongo]('https://github.com/EspiraMarvin/vue-mongo')### 2. Navigate to your repo folder
```bash
cd vue-mongo
```## Install the dependencies
```bash
yarn install
```### Start the app in development mode (hot-code reloading, error reporting, etc.)
```bash
yarn dev
```### Visit the URL [localhost:8080](http://localhost:8080)
## To run tests
### Jest Unit Tests (for vuex store)
```bash
yarn run test:unitOR
yarn run test:unit:ci
```### To run Cypress E2E Tests
```bash
yarn run test:e2eOR
yarn yarn run test:e2e:ci
```### Build the app for production
```bash
yarn build
```# Back-End with Expressjs & MongoDB Mongoose (api)
An Express Framework api
### Navigate to the server folder
```bash
cd vue-mongocd server
```
## Install the dependencies```bash
cd server
```### Then install dependencies
```bash
yarn install
```### Add .env file in the `server` folder
```bash
server/.env
```### Add the `MONGO_URI` variable I have provider in the `.env` file like below:
```bash
MONGO_URI = "the mongo uri"
```### Start the api server in development mode
```bash
yarn server
```### Visit the URL [localhost:4000](http://localhost:4000)
### To view the API Documentation visit this link [Protranslatin API Docs](http://localhost:4000/api-docs/)
```bash
http://localhost:4000/api-docs/
```