To get started with your project, follow the steps below:
- Install Redis and MongoDB
Redis and MongoDB are both required to run your project. You can use Docker to easily install both of them. Here's how:
docker-compose -f docker-compose.dev.yml up -d --no-deps redis mongodb workerThis command will start Redis and MongoDB containers using the docker-compose.dev.yml configuration file.
- Use dummy data to restore working set data, use the following command
docker exec -i mongoback sh -c 'mongorestore --archive' < db.dumpThis command will export the data from the MongoDB container into a db.dump file.
- Start the development server
Finally, to start the development server, run the following command:
npm run start:devThis 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.
[~/Documents/GitHub/crm]$ ls
crm-api crm-ui molecule_bull_microservice
[~/Documents/GitHub/crm]$ cd crm-apiMicroservice for file processing Bulk user uploads are handled by a worker process linked above.
docker-compose -f docker-compose.dev.yml up -d --no-deps workerFrontend app written using ionic and angular
- switch to
cdk-drag-dropbranch npm startfor development ornpm run buildfor production deployment
use credentials -
username: shanur.cse.nitap@gmail.com
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