Getting Started
Prerequisites
Clone the repository:
git clone https://github.com/AveGruas/tms.git
Install dependencies:
pnpm install
Environment Variables
The environment variables need to be set for the project to work correctly, you can find the environment variables in the .env.example file.
Here is an example of the environment variables that need to be set on the server app:
NODE_ENV=
ENV=
DATABASE_URL=""
VITE_PORT=5001
S3_URL=""
R2_ACCESS_KEY_ID=""
R2_SECRET_ACCESS_KEY=""
R2_BUCKET_NAME=""Starting the dev server
This is still being worked on, please look for other devs in case the commands don’t work.
To start all projects run:
turbo dev --parallel
To run a specific server use:
pnpm run dev -F docs
We are trying to make the scripts easier that it is currently.
Accesing the services
Currently the front end is only available on 127.0.0.1 and not localhost, this is due to some CORS configurations
that are not done yet.
While running the services in the dev environment they should be accesible in the following ports:
| Service | Port |
|---|---|
| Frontend | 3001 |
| Server | 5001 |
| Docs | 3000 |