To start using the monorepo the following instruction will help you kickstart using the monorepo
- Assuming you have not
clonedthis repo before, you can run the following on the directory you want to manage project.
git clone https://github.com/Solomon198/Anonymous-Platform.git
- To install all dependecies in all workspaces run the following command. make sure you run this command to ensure that all dependencies are synced.
```bash
npm ci- Run
git config --local include.path ../.gitconfigon the monorepo root directory
- To deletes
build,distandnode_modulesdirectory in the monorepo run
npm run clean- To run lint for the entire project run
npm run lintNoteSince we are using a monorepo this command is important for you to this command before attempting to run any main project(frontends,backends). because each of the frontends and backends will rely on packages to be built before they can run indevelopementor during production build. In cases where you update any shared library you have to run this command before starting the main project.
npm run build:libs- To deletes all node_modules directories in the monorepo run
npm run clean:node_modules- To run test in all the monorepo you can run this
npm run test- To run the project you have run the following in the monorepo root directory. Incase you don't want to run project from the monorepo root directory, you can build the libraries and then navigate to the project you want and start it.
npm run build:libs # build libraries in the monorepo
npm run start:anonymous