Sample Tracker is an efficient way to manage, organize, and collect infield waste water samples.
Create a central location for receiving and managing the infield waste water sample collection that will significantly reduce the manual effort required. Improve, automate, and centralize communiucaiton with Lab Professionals and other parties informed of the proccess and cut donwn the human error issues.
The back end application is using a MERN stack (MongoDb, Express, React, Node). The back end application is using Express Framework. The frontend application is using the React framework and several other third party libraries, bootstrapped via the create-react-app tool.MongoDb is the database for the application.
In order to get the applicatino up and running, you will need ot install the following:
- NodeJS
- MongoDb
Install a version of NodeJS that starts with 14.16
(e.g. 14.16.0
).
You should be able to find installation instructions for your particular platform here:
https://nodejs.org/en/download/package-manager/
MongoDB is our database. You will need to have MongoDB installed on your computer MongoDBor you can use MongoDB Atlas and manage your data in the cloudMongoDB Atlas
Start in the root of the project and open the api directory
cd api
npm install
mongoose is the ODM. This is the preferred way of communicating with the database, so the tools providee should be leveraged to help you build models and schemas.
We will now start the frontend. Open up a new tab in the terminal and execute the following commands.
cd ..
cd app
npm install
npm start
If you navigate to http://localhost:3000/
you should see the home page!
- Set Up Environment Variables with DotENV Package DotENV
cd packages
cd api
touch .env
- Add your tokens, MongoUrl, API credentials, and other secrets here they will be ignored by git.