🚀 Checkout the website live at : https://covicare-app.herokuapp.com/
- First full-stack web application
- ExpressJS
- MongoDB database design
- Bootstrap 4
- Intergration with API's
- Deploying app to Heroku and Database to MongoDB Atlas
Graphic Design | Front-End | Back-End | Database | Deployment |
---|---|---|---|---|
Inkscape | HTML5 | Node.js | Mongoose | Heroku |
. | CSS3 | ExpressJS | MongoDB | MongoDB Atlas |
. | Bootstrap 4 | EJS | . | Git |
. | Javascript | . | . | . |
- Bootstrap 4 as the CSS framework to keep the UI simple and quick to build.
- ExpressJS as the Node.js application framework for its basic functionality. Some companies still use ExpressJS so it was important to implement it.
- PassportJs for the authentication and authorization.
- NoSQL database for the flexibility compared to a SQL database, MongoDB in particular because of its prevalence in the industry.
- Login, sign-up, Admin role
- REST API (create, read, update, delete) for Hospitals, comments, and reviews
- Create routes have authentication
- Edit, Update, and Delete routes have authentication and authorization
- Google Maps API
Create an .env file and add values to the following variables:
GEOCODER_API_KEY=
API_KEY=
DATABASEURL=
PASSPORT_SECRET=
ADMIN_CODE=
In a terminal window, initialize a Mongoose Database
$ ./mongod
In a second terminal window, display the Mongoose Database
$ mongoose
In a third terminal window, install dependencies using npm:
$ npm install
And then run the application with
$ npm start
The integration tests using Jest test the creation of data, the functionality of the schema, and the functionality of the validation. The tests are iterated over each of the models: covicare, comments, reviews, users. To run the tests:
$ npm test
Copyright Notice and Statement: currently not offering any license. Permission only to view and download.