Before running the full application, developers need to set up the environment variables for both the frontend (root) and the backend (server/).
-
Frontend Environment Variables: Copy the
.env.examplefile located in the root directory to a new file named.envand fill in any required variables.cp .env.example .env
-
Backend Environment Variables: Navigate to the
serverdirectory and copy its.env.examplefile to a new.envfile. Fill in your actualMONGO_DB_CONNECTION_URIand any other secrets.cd server cp .env.example .env
If the database is connected properly and the users collection is empty, the application will automatically seed a default administrator user for development purposes.
You can log in using these credentials:
- Email:
anyone@example.com - Password:
password123
