Before running the project, ensure you have the following installed:
- Node.js (
v20.9.0or higher recommended) - npm (
10.9.0or higher recommended) - Docker (optional, for running dependencies like the database)
.envconfiguration
git clone https://github.com/proatik/event-management.git
cd event-managementUse npm to install required packages:
npm installCreate a .env file in the root directory and add the required environment variables. Use the .env.example file as a reference.
.env.example:
# ----- Application ----- #
APP_PORT=5000
# ----- Database ----- #
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=boss
DB_PASSWORD=password
DB_NAME=event-management
TYPEORM_SYNC=true
# ----- Caching ----- #
CACHE_TTL=3600
CACHE_MAX=100
# ----- Email ----- #
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=boss@gmail.com
SMTP_PASSWORD=password
EMAIL_FROM=boss@gmail.com
If you are using Docker, start the database container with:
docker-compose up -dEnsure that the database configuration in the .env file matches the database container settings.
Note: If you run database in any other way, please make sure it matches the database configuration in the .env file
Start the NestJS application:
npm run start:devThe application will be available at http://localhost:<PORT> (default is 3000).
Swagger API documentation is available at:
http://localhost:<PORT>/api-docs
You can test all the endpoints interactively using Swagger.
Thank you for exploring this project! We appreciate your time and interest. If you have any feedback or suggestions, feel free to share them.