|
ahmadysalah / doctor-reservation Goto Github PK
View Code? Open in Web Editor NEWWeb app to book an appointment for a doctor clinic
Home Page: https://clinic-online.herokuapp.com/
Web app to book an appointment for a doctor clinic
Home Page: https://clinic-online.herokuapp.com/
create the landing page and style it
to-do
to-fo
create about us page
to-do
create the file structure below ..
Doctors-reservation
|-- client
|-- node_modules
|-- public
| |-- fivicon.icon
| |-- index.html
|-- src
| |-- assets
| | |-- images /
| | `-- icons /
| |-- components
| | |-- App
| | | |-- App.css
| | | `-- App.js
| | |-- Common
| | | |-- Header
| | | | |-- index.js
| | | | `-- index.css
| | | |-- Footer
| | | | |-- index.js
| | | | `-- index.css
| | | `-- index.js
| | |-- pages
| | | |-- Home
| | | | |-- index.js
| | | | `-- index.css
| | | |-- Profile
| | | | |-- index.js
| | | | `-- index.css
| | | `-- index.js
| |-- utils
| | |-- applicants /
| | |-- admin /
| | `-- index.js
| |-- index.css
| `-- index.js
|-- .gitignore
|-- package-lock.json
`-- package.json
src
|-- controllers
| |-- errors /
| |-- routes /
| |-- validation /
| `-- index.js
|-- router
| `-- index.js
|-- database
| |-- config
| |--index.js
| `-- queries
| |--index.js
|-- app.js
|-- index.js
|-- .gitignore
|-- package-lock.json
|-- package.json
|-- README.md
npm : server
npm : client
to-do
write readme to project contain :
1- information about Doctors
2- summary
3- user-journey
4-schema
5- technology
6-stretch goals
to-do
to-do
npm run build:database:dev not working
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Nxt\AppData\Roaming\npm-cache_logs\2021-11-11T15_12_36_061Z-debug.log
PS F:\doctor-reservation-master\doctor-reservation-master> npm run build:database:dev
[email protected] build:database:dev F:\doctor-reservation-master\doctor-reservation-master
NODE_ENV=developer node server/database/utils/createCollection.js
F:\doctor-reservation-master\doctor-reservation-master\node_modules\mongoose\lib\index.js:330
Mongoose.prototype.connect = function("mongodb://127.0.0.1:27017/doctor?readPreference=primary&directConnection=true&ssl=false", options, callback) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Unexpected string
at wrapSafe (internal/modules/cjs/loader.js:1001:16)
at Module._compile (internal/modules/cjs/loader.js:1049:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object. (F:\doctor-reservation-master\doctor-reservation-master\node_modules\mongoose\index.js:9:18)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
Note: This command was run via npm module 'win-node-env'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:database:dev: NODE_ENV=developer node server/database/utils/createCollection.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:database:dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Nxt\AppData\Roaming\npm-cache_logs\2021-11-11T15_12_56_303Z-debug.log
to-do
endpoint :"/addDoctor/"
method: post
response {
status : 200
message : "doctor added successfully "
}
to-do
to-do
create a control panel page and the necessary component
endpoint : "/alldoctors/:specialization"
method : get
response {
status : 200
data : {
doctorName
....
}
}
to-de
create fetch function to the api to get updated news about corona virus : .
to-do
create endPoint to get all appointment
method { get }
response {
status : 200
appointment {
patientName ,
age ,
appointmentData,
time,
}
}
to-do
to-do
End Point : /appointment/:clinic
response {
status : 200
data : {
appointment ,
}
}
End Point : /appointment/:doctor
response {
status : 200
data : {
appointment ,
}
}
to-do
to-do
to-do
to-do
handle error 404
to-do
handle error 500
to-do
API page
create a card component
create the doctor page
endpoint : "/alldoctors"
method : get
response {
status : 200
data : {
doctorName
....
}
}
to-de
create the form components like
text input
select box
check box
date clender
to-do
create server express
create server folders
controler
router
database
add the json configurations to run the server
create the models for the database in the specific folder
create appointment schema
to-do
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.