MedHive API is a simple CRUD project about managing a small imaginary hospital 🏥
You need to carry out these steps to launch the project or start working with it.
- Install Node.js for your current platform
- Clone the repository
Learn how to start the server or start working with it's code.
- Enter the cloned repository directory eg.
cd MedHive-API - Install dependencies with
npm installornpm i - Build the project with
npm run build - Start the server with
npm start - The server by default is available at https://localhost:3000
When creating a server, restarting it is a bit cumbersome. So you can start the server in development mode. From now on, any change you make will automatically restart the server with the new code, and you will see the changes immediately when you refresh the page or make another request.
You can achive that by using npm run dev
If you're running the server for the first time you may need to build it first with npm run build
The flow is pretty common.
- Create a new branch in git
- you may need to work on your own fork of the repository
- Make your changes
- Test your new feature
- Before commiting take care of the code formatting. We're providing a simple way to format your code by running
npm run format. Some editors will automatically format your code on file save (you may need to explicitly enable this option in settings). - Create a pull request
- Wait for the code review to be done
- Merge your pull request
- Well done!