You should still be able to do groceries while in Space ;)
Welcome to the Galaxy E-Commerce application! This project is built using Node.js, Express, MongoDB, and EJS with a Galaxy theme (Wow, really?). Follow the instructions below to set up and run the application.
Make sure you have the following software installed on your machine:
- Node.js (v14 or later)
- npm (v6 or later)
- MongoDB (v6.0 or later)
- Git (for cloning the repository)
-
Clone the repository:
git clone https://github.com/your-username/galaxy-ecommerce.git cd galaxy-ecommerce -
Install dependencies
npm install
- Use the
.envfile, to change ports for both the application and the connection to the DB (in case you need it)
- Start Mongo DB (Check how to install it on your OS)
"C:\Program Files\MongoDB\Server\<version>\bin\mongod.exe" --dbpath C:\data\db
mongod --dbpath /data/db
- Start the application
npm start
galaxy-ecommerce/
│
├── public/ # Static files (CSS, images, etc.)
│ └── styles.css # Main stylesheet
│
├── src/
│ ├── controllers/ # Controllers for handling requests
│ ├── models/ # Mongoose models for MongoDB
│ ├── routes/ # Express routes
│ └── views/ # EJS templates for rendering pages
│
├── .env # Environment variables
├── index.js # Entry point of the application
├── package.json # Node.js dependencies and scripts
└── README.md # Project documentation
This project is open source and available under the MIT License