Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codebanesr/crm-api
A containerized mobile crm application written in MEAN stack
https://github.com/codebanesr/crm-api
backend crm docker docker-compose kuberntes mongodb
Last synced: about 2 months ago
JSON representation
A containerized mobile crm application written in MEAN stack
- Host: GitHub
- URL: https://github.com/codebanesr/crm-api
- Owner: codebanesr
- Created: 2020-04-19T17:16:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-24T22:54:03.000Z (over 1 year ago)
- Last Synced: 2024-05-17T20:18:21.965Z (8 months ago)
- Topics: backend, crm, docker, docker-compose, kuberntes, mongodb
- Language: TypeScript
- Homepage: https://applesauce.co.in
- Size: 42.8 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting Started
To get started with your project, follow the steps below:
1. Install Redis and MongoDBRedis and MongoDB are both required to run your project. You can use Docker to easily install both of them. Here's how:
```sh
docker-compose -f docker-compose.dev.yml up -d --no-deps redis mongodb worker
```This command will start Redis and MongoDB containers using the docker-compose.dev.yml configuration file.
2. Use dummy data
to restore working set data, use the following command
```sh
docker exec -i mongoback sh -c 'mongorestore --archive' < db.dump
```This command will export the data from the MongoDB container into a db.dump file.
3. Start the development server
Finally, to start the development server, run the following command:
```bash
npm run start:dev
```This command will start the development server for your project.
Congratulations! You have now successfully installed Redis and MongoDB, loaded dummy data, and started the development server for your project. You can now start working on your project and building out its features.
---
## Project structure
```sh
[~/Documents/GitHub/crm]$ ls
crm-api crm-ui molecule_bull_microservice[~/Documents/GitHub/crm]$ cd crm-api
```
## File processing service
[Microservice for file processing](https://github.com/shanurrahman/molecule_bull_microservice)
Bulk user uploads are handled by a worker process linked above.```sh
docker-compose -f docker-compose.dev.yml up -d --no-deps worker
```## Frontend application
[Frontend app written using ionic and angular](https://github.com/shanurrahman/crm-ui/tree/cdk-drag-drop)
1. switch to `cdk-drag-drop` branch
2. `npm start` for development or `npm run build` for production deploymentuse credentials -
```
username: [email protected]
password: password123
```
to login into the app---
`docker system prune` -> Delete prev images
`docker-compose up -d --build --no-deps main` -> build and restart main server
`docker-compose up -d --build --no-deps worker` -> Build and restart worker[![Contact me on Codementor](https://www.codementor.io/m-badges/shanurrahman/book-session.svg)](https://www.codementor.io/@shanurrahman?refer=badge)