https://github.com/noook/pet-tracker
https://github.com/noook/pet-tracker
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/noook/pet-tracker
- Owner: noook
- Created: 2018-12-13T22:02:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-18T22:05:26.000Z (over 7 years ago)
- Last Synced: 2025-06-03T13:01:20.616Z (about 1 year ago)
- Language: Vue
- Size: 714 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pet Tracker
## Installation
### Client
if running production mode go to the client folder and run `npm run build`.
This will output the production build to the `/dist` folder. Vue runs in history mode, make sure to configure your webserver to redirect all requests on `index.html`.
### Server
Go in `api/config/` and fill in your credentials in `index.js`
Create the Postgresql database and run the migration and seeds script:
```sh
cd api
./node_modules/knex/bin/cli.js migrate:latest --knexfile ./database/knexfile.js
./node_modules/knex/bin/cli.js seed:run --knexfile ./database/knexfile.js
```
Thils will create the tables and fill them with some data to work with.
To run the server, run `node index.js` from the `api` folder.
If you want mails to be sent, don't forget to export the env mode variable and set it to `production` before running the server
```sh
export MODE=production
```