Lab Website using MERN (MongoDB, Express, React, Node.js) stack, which serves as a platform for showcasing our research projects, publications, members, and other lab-related information. The database is shared with Caboodle.
To run this project locally, you will need to have Node.js and MongoDB installed on your machine. You can then follow these steps:
Clone the repository to your local machine:
- Copy code
git clone https://github.com/bhklab/bhklab-website.git - Move to
bhklab-websitedirectory - Install dependencies by running
npm installat root - Move to
clientdirectory - Install dependencies by running
npm install
- Start the backend by running
npm startat the root directory - Start the client by running
npm startat the client directory - This will start the server at http://localhost:3000
- Include a correct MONGODB_URL connection string in the .env file
- Place seed files for each collection (.json file) under
databases/maintenance/datadirectory - Navigate to the databases/maintenance/ directory in your terminal or command prompt
- Run
node restore.jsindatabases/maintenance/directory to seed the database
This project uses the following technologies:
- MongoDB, Express, React, Node.js
- This project uses a shared database with Caboodle, which is a database management system for internal lab project/grant management. The database contains information on our lab's research projects, data, and publications. Any changes made to the database through this website will be reflected in Caboodle, and vice versa.
If you would like to contribute to this project, please follow the standard Git workflow:
Fork the repository Create a new branch for your feature or bug fix Commit your changes and push your branch to your fork Create a pull request from your branch to the main repository
This project is licensed under the MIT License. See the LICENSE file for details.