8000 GitHub - fininhors/tyra-web: Veterinary management
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fininhors/tyra-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Buy Me A Coffee donate button

Tyra Web

Fullstack MEVN Veterinary management application.

  • Calendar.
  • Clients and Pets.
  • Medical Records.
  • Staff Access.
  • Inventory.

Video Demo

Video Demo v0.2-alpha

Dependencies

See package.json inside client/ and server/.

Getting Started

You need to have a MongoDB in your system. I suggest that you get it as a Docker image. The following steps are to setup your database:

Pull MongoDB Image

sudo docker pull mongo

Create Directory in you system to have persistent data

sudo mkdir -p /mongodata

Start the Docker Container and Enter the Bash Shell

sudo docker run -it -v /mongodata:/data/db -p 27017:27017 --name mongodb -d mongo
sudo docker exec -it mongodb bash

Create DataBase and Collection

mongo
> use tyra-web
> db.tyra.insert({ name: 'test' })

Populate DB from your system

Note: admin default password is inside the script

node server/populatedb.js

Create MongoDB backups.

App

client/

Contains the Vue Application. In here we consume the API to display the information from the DataBase and also modify that information.

server/

Constains the API.

List of Environment Variables

You need to create two .env files. One inside client/ and the other inside server/ and set the following Environment Variables:

client/.env

Default port is 3000

Name Value
VUE_APP_TYRAWEB_USERS host:port/users
VUE_APP_TYRAWEB_FIND_USER host:port/users/find
VUE_APP_TYRAWEB_LOGIN_USER host:port/users/login
VUE_APP_TYRAWEB_CREATE_USER host:port/users/signup
VUE_APP_TYRAWEB_UPDATE_USER host:port/users/update
VUE_APP_TYRAWEB_DELETE_USER host:port/users/delete
VUE_APP_TYRAWEB_BREEDS host:port/breeds
VUE_APP_TYRAWEB_CREATE_BREED host:port/breeds/create
VUE_APP_TYRAWEB_FIND_BREED host:port/breeds/find
VUE_APP_TYRAWEB_UPDATE_BREED host:port/breeds/update
VUE_APP_TYRAWEB_DELETE_BREED host:port/breeds/delete
VUE_APP_TYRAWEB_PET host:port/pets
VUE_APP_TYRAWEB_PETS host:port/pets/all
VUE_APP_TYRAWEB_ADD_PET host:port/pets/add-pet
VUE_APP_TYRAWEB_PET_ADD_PICTURE host:port/pets/upload-picture
VUE_APP_TYRAWEB_PROFILE_PICTURE host:port/pets/picture
VUE_APP_TYRAWEB_CLIENTS host:port/clients
VUE_APP_TYRAWEB_CLIENT host:port/clients/client
VUE_APP_TYRAWEB_CREATE_CLIENT host:port/clients/create
VUE_APP_TYRAWEB_SERVICES host:port/services
VUE_APP_TYRAWEB_CREATE_SERVICE host:port/services/create
VUE_APP_TYRAWEB_SERVICE host:port/services/find
VUE_APP_TYRAWEB_UPDATE_SERVICE host:port/services/update
VUE_APP_TYRAWEB_DELETE_SERVICE host:port/services/delete
VUE_APP_TYRAWEB_DAY_SCHEDULES host:port/dayschedule
VUE_APP_TYRAWEB_CREATE_DAY_SCHEDULE host:port/dayschedules
VUE_APP_TYRAWEB_ADD_APPOINTMENT host:port/dayschedules/add-appointment
VUE_APP_TYRAWEB_UPDATE_APPOINTMNETS host:port/dayschedules/update-appointment
VUE_APP_PLACEHOLDER https://via.placeholder.com/500/?text=No+Profile+Picture

server/.env

Name Value
MONGODB_TYRAWEB_TEST mongodb://host:port/tyra-web-test
ACCESS_TOKEN_SECRET random string
TYRAWEB_ROUTE_USERS /users
TYRAWEB_ROUTE_BREED /breeds
TYRAWEB_ROUTE_PETS /clients
TYRAWEB_ROTUE_CLIENTS /pets
TYRAWEB_ROUTE_SERVICES /services
TYRAWEB_ROUTE_DAY_SCHEDULES /dayschedules

Contributing

If you find this project usefull for your professional life, consider making a donation.

For code contributions, please go to our Contribution File

License

MIT

0