Skip to content

mawadSur/crm

Repository files navigation

CRM Admin CMS

Start project

Create .env file and use values

NODE_ENV=development
PORT=3434
API_URI=http://localhost:3434/api

# Staging DB
# MONGO_URL=mongodb+srv://mawad:1DmY1ROUtJNfHYj3@cluster0.pd1pdsf.mongodb.net/

# Local DB
# MONGO_URL=mongodb://127.0.0.1:27343/crm

# Local DB run with docker
MONGO_URL=mongodb://db:27017/crm

Install dependencies

yarn

Start normal

Must use local db or staging db (check at .env file)

yarn dev

or

Start With docker

Must use docker db or staging db (check at .env file)

docker compose up

http://localhost:3434/admin

How to deploy new code on server

  1. Pull new code

  2. Build code

$ yarn build
  1. Restart pm2
$ pm2 restart crm

Developer rules:

Format code: Prettier (https://prettier.io/)

UIUX: https://storybook.adminjs.co

Commit code: https://www.conventionalcommits.org/en/v1.0.0/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors