This project is a web-based administration panel for a shoe shop. It is built using AdminJS, a modern JavaScript-based admin panel solution. The project is written in TypeScript and uses MongoDB as the database, with Mongoose as the ODM (Object Data Modeling) tool.
Before you can run the project, you need to set up your development environment. Here are the steps:
-
Install Node.js and npm: You need to have Node.js and npm installed on your machine. You can download Node.js from the official website. npm is included with Node.js.
-
Clone the project: Clone the project from the GitHub repository to your local machine.
-
Install dependencies: Navigate to the project directory in your terminal and run
npm install
to install the project dependencies. -
Set up environment variables: Create a
.env
file in the root directory of the project. This file should contain the following variables:
PORT=
MONGO_URI=
Replace <username>
and <password>
with your MongoDB username and password.
To run the project, use the following command in your terminal:
npm run dev
This command starts the server using ts-node
, which allows you to run TypeScript code without having to compile it first.
The server will start on the port specified in your .env
file (default is 3000). You can access the admin panel by navigating to http://localhost:<PORT>/admin
in your web browser.
Contributions to the project are welcome. Please ensure that you follow the existing code style and run tests before submitting a pull request.
This project is licensed under the MIT license.