Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silvadias: Added documentation, Docker Compose configuration, and port and environment variable adjustments #1

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

silvadias
Copy link

Pull Request Description:

This Pull Request includes the following changes:

  • Added docker-compose.yml file: Configures the Node.js and MongoDB containers for an isolated development environment.
  • Changed the port from 8000 to 3000: This ensures better compatibility with the adjusted settings in the server.js file.
  • Updated README.md: Added detailed instructions on how to set up and use Docker Compose in the development environment.
  • Added .env file: Contains environment variables and passwords for development use.
    Note: The .env file is safe for use in the development environment but should be replaced with a secure .env file for production.

Important Notes:

  • If you prefer not to use Docker, you can ignore the docker-compose.yml file and manually adapt your development environment by installing the necessary dependencies. However, we strongly recommend creating an isolated environment (e.g., a virtual machine or container) to ensure consistency across all machines. This will help avoid configuration issues and ensure that all developers work in the same environment.

The silvadias branch was created to implement these changes, updating the documentation and configuring the development environment using Docker Compose.

- Changed the server port from 8000 to 3000 to align with common Node.js development practices.
- Added MongoDB service to create non-production test records, helping to simulate a realistic environment without affecting real data.
- Configured the Node.js service to use the MongoDB connection URI (mongodb://mongo:27017/ecomerce) to connect to the database.
- Added environment variables to set the Node.js environment to 'development' and MongoDB credentials for secure initialization.
- Configured volumes for persistent data storage and database initialization scripts.
- Ensured that the Node.js service waits for the MongoDB service to be ready before starting.
- Highlighted that initial records for the database should be created in the  by the eCommerce creator or later as needed.

This setup enables easy testing of the eCommerce application in a local environment with a development database.
…t environment

- Changed the server port from 8000 to 3000, which is more common in Node.js development environments.
- Added the website URL for Stripe registration, enabling users to register and run the development environment.
- Changed the server port from 8000 to 3000 to align with common Node.js development practices.
- This change ensures consistency with other Node.js applications, making it easier for developers to set up and configure the environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant