This is a Childcare SaaS Product, which aims to provide a platform for parents to find and hire caregivers for their children. The product allows caregivers to create a profile and list their availability, hourly rate, and location. Parents can search for caregivers based on their location, availability, and hourly rate, and can also view caregiver profiles to learn more about them.
- Node.js
- Express.js
- PostgreSQL
- TypeScript
- JWT for authentication
- bcrypt for password hashing
- dotenv for environment variables
- express-validator for request validation
- Node.js installed on your machine
- PostgreSQL installed on your machine
- Clone the repository:
git clone https://github.com/kirollosatef/childcare-mvp-saas
- Install dependencies:
cd childcare
npm install
-
Create a
.env
file based on the.env.example
file, and add the required environment variables. -
Create the PostgreSQL database and run the SQL script to create the necessary tables:
createdb childcare
psql childcare < database.sql
To start the server, run:
npm start
The server will start on http://localhost:3000
.
- Registration endpoint [PSOT]
- get user profile [GET]
- update user profile [PUT]
- login endpoint [POST]
- logout endpoint [POST]
- Delete user [DELETE]
- enable user [POST] or [PUT]
- disable user [POST]
- /api/users/register
- /api/users/profile
- /api/users/profile
- /api/login
- /api/logout
- /api/users
- /api/users/enable
- /api/users/disable
- Caregiver
- user-registration
- register
- register.controller.ts
- register.service.ts
- register.router.ts
- profile
- login-logout
- register
- DB
- db.service.ts
- server.ts