Starter made for all projects related to Lifespikes
You can find documentation and other helpful information in the following places:
- Some Unix-based OS or development environment (MacOS, Linux, WSL2)
- NodeJS
- TypeScript
- Nx
- NestJS
- Prisma ORM
- Yarn
- MySQL
Some of the above are dependencies that will install locally in your project, but installing them globally
will help you leverage their CLI tools without having to prefix them with yarn
or npm run
.
We also strongly recommend using WebStorm as your IDE.
-
Install all dependencies:
yarn install
-
Ensure all your
apps
have a.env
file in their root directory. You can copy the.env.example
file and rename it to.env
:cp apps/api/.env.example apps/api/.env cp apps/frontend/.env.example apps/frontend/.env # Expand this as needed for other apps. # This goes without saying, but make sure you edit the # `.env` files to match your local environment.
-
Run the API and frontend development servers:
nx serve frontend nx serve api
- Basic authentication configuration
- Configuration of environment variable handling
- Commands configuration
- Swagger integration
- Orval integration
- General NX configuration
At the moment, the possible way for commands to be run is as follows:
- You must build the api with the command
nx build api
. - Run
node spikey <command-name> <project-name>
.
To read more information, please read the nestjs-commander documentation.
If you want to add more features, components or utilities to the Lifespikes ui, you can make a PR to this repo: lifespikes/packages