Backend Trial
To get started, follow these steps:
- Install the necessary Node.js modules by running
npm install
. - Create a
.env
file with the following content, replacing placeholders with your actual values:PORT=5001 CONNECTION_STRING=mongodb+srv://your-username:[email protected]/your-database ACCESS_TOKEN_SECRET=your-secret
- Keep your
.env
file secure, as it contains sensitive information. - Start your project with
npm run dev
and access it on the specified port.
To test your queries, you can use ThunderClient.
Remember to keep your sensitive information, especially the .env
file, private and do not expose it in your public repository.
TIP: You can add .env to your .gitignore file.