Welcome to Little Angels Childcare, a project built with Next.js, PostgreSQL, and Docker. This freelance project provides a functional web application running on a production server, hosted on a VPS with Hostinger and accessible at littleangelspdx.com.
This project is designed for a childcare service and includes the following technologies:
- 🎨 UX/UI: Built with figma.
- 🖥️ Frontend: Built with Next.js.
- 🐘 Database: PostgreSQL for data storage.
- 🐳 Infrastructure: Docker containers for the app, PostgreSQL, and Nginx for reverse proxy.
- 🌐 Hosting: Deployed on a Hostinger VPS.
- 🔑 API Integration: Includes API keys for services like Google Maps.
- Next.js: A React-based framework for server-side rendering.
- PostgreSQL: Relational database.
- PgAdmin: Database management tool.
- Showcase childcare details and offerings.
- Displays location and other map-based services using Google Maps API.
- Simplified setup and deployment using Docker Compose.
The application uses the following environment variables:
DB_USER="admin"
DB_PASSWORD="admin"
DB_NAME="childcare"
DB_HOST="db"
DB_PORT="5432"
MAPS_API_KEY="maps-api-key"
MAPS_PLACE_ID="maps-place-id"
PGADMIN_DEFAULT_EMAIL="admin@example.com"
PGADMIN_DEFAULT_PASSWORD="admin"
Ensure you update sensitive information (e.g., DB_PASSWORD
and MAPS_API_KEY
) before deploying to production.
- Docker
- Docker Compose
-
Clone the Repository:
git clone https://github.com/your-username/little-angels-childcare.git cd little-angels-childcare
-
Start the Application:
docker compose up -d
-
Access the application at http://localhost.
To restart the app with a fresh build and reset the database:
docker compose down -v
docker compose up --build -d
src/
: Contains the application source code.public/
: Static files served by the application.docker-compose.yml
: Docker Compose configuration for the app, database, and reverse proxy.Dockerfile
: Defines how the Next.js app is containerized.
- Add user authentication for admin panels.
- Implement additional features like scheduling and parent portals.
- Enhance SEO performance.
Feel free to fork the repository, make improvements, and submit pull requests. All contributions are welcome!
For any questions or suggestions, reach out at joaomarcospsnbr@gmail.com.