Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Latest commit

 

History

History
162 lines (117 loc) · 4.38 KB

README.md

File metadata and controls

162 lines (117 loc) · 4.38 KB

devstyle logo
#Being a Developer, More Than a Job, It's a Lifestyle.

🛍️👨🏽‍💻🚀🌐

Devstyle's e-commerce server⚙️

Tech

Frontend project repo

🖥️Devstyle frontend here

Quick Start

Requirements

  • node
  • npm
  • mongodb
  • mongo compass (optional)
  • postman (optional)

Clone the repository

git clone https://github.com/artemesian/devstyle-backend.git

cd devstyle-backend

How to install

You just have to run :

npm install

Set env

cp .env.example .env

Open .env file and modify with your configurations

MONGO_URI = "mongo_db_link_here";
PORT = "port_number";

CLOUDINARY_CLOUD_NAME = "cloudinary_cloud_name";
CLOUDINARY_API_KEY = "cloudinary_api_key";
CLOUDINARY_API_SECRET = "cloudinary_api_secret";

BCRYPT_SALT = "";
JWT_KEY = "jwt_key_link_here";

MAILCHIMP_API_KEY = "api_key";
MAILCHIMP_SERVER_PREFIX = "server_prefix";
MAILCHIMP_AUDIENCE_ID = "audience_id";

ADMIN_COOKIE_NAME = "name";
ADMIN_COOKIE_PASS = "pass";

Start react server

npm start

Server will be running on

http://localhost:5000, either open the server in Postman or directly in your web browser.

on route / , you should get this response :

"Welcome to the otherside🙂"

Run or fork Devstyle postman collection

Run in Postman

Create any admin user via Postman

Postman register

You can either proceed with Postman or Admin bro (recommended). If you continue with Postman, don't forget to set the Authorization Bearer token.

Use Admin bro dashboard

Connect to the dashboard with an admin account at http://localhost:5000/admin

NB : First create some Size (a size is needed to create any goodie item )

How to contribute

Just follow these steps :

  • Create an issue with your fix/feature/improvement (Optionnal but recommended).
  • Fork the project.
  • Create a branch for your feature/update/fix(Make sure to have the latest master-branch updates).
  • Create a Pull Request to develop branch.
  • After a check, it will be merged to the project.

Author

Join the Community💙