https://github.com/marshallswain/feathers-pinia-api
https://github.com/marshallswain/feathers-pinia-api
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marshallswain/feathers-pinia-api
- Owner: marshallswain
- Created: 2022-09-20T08:15:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-26T19:34:45.000Z (over 1 year ago)
- Last Synced: 2025-02-27T23:02:57.363Z (4 months ago)
- Language: TypeScript
- Size: 452 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
feathers-pinia-api server for feathers-pinia 🍍## About
This is the example [Feathers](http://feathersjs.com) backend server for most Feathers-Pinia examples used in the documentation.
It is setup to provide a [client bundle of typescript for use on your client](https://marshallswain.github.io/feathers-pinia-api/feathers-pinia-api-0.0.0.tgz).- 🕊 Feathers is an open source framework for building APIs and real-time applications.
- 🍍 Pinia is an App state management framework by Vue
- 🦜 Feathers-Pinia is a project that seamlessly connects the best of Feathers and Pinia
- ⚡ Vite is a DX focused build tool with great support for Vue, HMR and TypeScript## Getting Started
1. Make sure you have [NodeJS](https://nodejs.org/) and [npm](https://www.npmjs.com/) installed.
2. Install your dependencies```
cd path/to/feathers-pinia-nuxt3-api
npm install
```3. Set up a MongoDB
☁ Using MongoDB Atlas (free SaaS DB service)
1. Follow the instructions on how to setup a DB https://www.mongodb.com/docs/atlas/tutorial/deploy-free-tier-cluster/
2. Copy the NodeJS driver URL
3. Paste in the mongodb key of `config/default.json` replacing `"mongodb": "mongodb://127.0.0.1:27017/xxx",` in the process.
- Where xxx is the name of the database.
- A database name in your URI is required.
🏠 Using a locally installed MongoDB community edition server
a. Download the community edition: https://www.mongodb.com/try/download/community
b. Set up the data storage folder:
Windows
```
mkdir C:\data
mkdir C:\data\db
```
MacOS / Linux
```
mkdir -p /data/db
sudo chown -R `id -un` /data/db
```
c. Start MongoDB
```
./mongod
```4. Start your app 🧑🚀
```
npm run compile # Compile TypeScript source
npm start
```## Testing
Run `npm test` and all your tests in the `test/` directory will be run.
## Scaffolding
This app comes with a powerful command line interface for Feathers. Here are a few things it can do:
```
$ npx feathers help # Show all commands
$ npx feathers generate service # Generate a new Service
```## Help
For more information on all the things you can do with Feathers visit [docs.feathersjs.com](http://docs.feathersjs.com).