NextAppoint is a web application that helps users book appointments with the doctor of their choice. It allows users to book and view their upcoming and expired appointments, and enables them to cancel an appointment if needed, acknowledging a successful appointment booking with an email.
- Book appointments with doctors of your choice
- Receive confirmatory emails for appointments
- View upcoming and expired appointments
- Cancel appointments
- Node.js
- npm or yarn
- Strapi (connect a database, set up Environment variables)
To set up your Strapi project and connect it to a PostgreSQL database on Render, follow these steps:
-
Install Strapi:
npx create-strapi-app my-project --quickstart
-
Configure PostgreSQL:
Update your
config/database.js
file to use PostgreSQL:module.exports = ({ env }) => ({ defaultConnection: 'default', connections: { default: { connector: 'bookshelf', settings: { client: 'postgres', host: env('DATABASE_HOST', 'your-postgres-host'), port: env.int('DATABASE_PORT', 5432), database: env('DATABASE_NAME', 'your-database-name'), username: env('DATABASE_USERNAME', 'your-database-username'), password: env('DATABASE_PASSWORD', 'your-database-password'), ssl: env.bool('DATABASE_SSL', false), }, options: {}, }, }, });
-
Deploy on Render:
- Sign up on Render and create a new PostgreSQL database.
- Note down the database connection details.
- Create a new Web Service on Render and link it to your Strapi project repository.
- Set the environment variables for your PostgreSQL database in the Render dashboard.
-
Start Strapi:
npm run develop
-
Access Strapi Admin:
Navigate to
http://localhost:1337/admin
to access the Strapi admin panel.
-
Clone the repo
git clone https://github.com/Shrey-Raj/nextAppoint.git
-
Navigate to the project directory:
cd nextAppoint
-
Install dependencies:
npm install
-
Run the development server:
npm run dev
The app will be accessible at http://localhost:3000/.
Explore the live version of the NextAppoint App here.
Special thanks to the creators and maintainers of the libraries and APIs used in this project.
Happy coding! 🚀