Skip to content

Joeycho/javascript-pet-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Javascript-pet-management-system

This is the pet management system support by JS HTML CSS for Frontend and Rails for Backend.

There are three models, Owner, Pet and Clinic. They have relationship each other.

For example, pet belongs to Owner and Clinic. Owner could have many clinics through Pet. Likewise from Clinic.

javascript_backend

Instruction

Backend Preparation

/backend

Uner backend folder, run the followiing commands.

bundle install

Install all the necessary gems for this application. Especially, 'rack-cors' and 'fast_jsonapi' are used for Rails Backend.

rails db:migrate

Migrate the database which is described in db/migrate folder.

rails db:seed

Seed some datas into sqlite3. In this example, I put 2 clinics and 1 owner.

rails server -p 3005

This command is for running the backend server on port number 3005. It will show the URL address to access. Make sure that it contains http protocol. It should be http, not https. In my example, it was http://0.0.0.0:3005.

Development Environment

OS: Windows 10 and WSL2 Ubuntu 20.04 Web browser: Chrome 91

License

Under the MIT License

Reference

https://github.com/Joeycho/sinatra-pet-management-system

https://github.com/Joeycho/rails-pet-management-system

https://github.com/Joeycho/react-redux-pet-management-system

https://github.com/learn-co-curriculum/js-rails-as-api-creating-a-rails-api-from-scratch

https://github.com/learn-co-students/js-rails-as-api-using-fast-json-api-v-000

Feedback

Not yet

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published