Table of Contents
This project allows users to access their medication history, current medications list, and add new medications. Users have to register with the website first and login each time to access their medications.
This project was bootstrapped with Create React App.
RxRoster allows users to access their medication history, current medications list, and add new medications. Users have to register with the website first and login each time to access their medications.
Please follow the following instructions to get started with RxRoster.
Every library or framework utilized for this project can be found in the package.json
file.
To install the dependencies, please run this command:
- npm
npm install npm@latest -g
As the frontend and backend of RxRoster are in different directories, both repositories will need to be cloned to your local computer.
The repositories can be found here:
It is highly recommended that you install the backend first. Once the backend is set up, the frontend will connect to the backend via an environmental variable.
- Obtain IAM access and
JWT_SECRET
keys from me by contacting me at my LinkedIn. I will create an IAM account for you and provide theAWS_SECRET_KEY_ID
andACCESS_ACCESS_KEY_ID
. - Fork the repositiory.
- Clone the repository.
git clone https://github.com/rose-codes_/rx-roster-back-end.git
- Install NPM packages.
npm install
- Add
/node_modules
to the.gitignore
file if it is not already listed. - Create an .
env
file and add the AWS IAM access information:AWS_SECRET_KEY_ID=[Your Secret Key] AWS_ACCESS_KEY_ID=[Your Access Key] AWS_DEFAULT_REGION=us-west-1
- To set up the
Express
server, add the following to the.env
file:PORT=5000 [or your choice] NODE_ENV=development JWT_SECRET=[JWT_SECRET token I provide]
- Add the
.env
file to the.gitignore
.
- Fork the repositiory.
- Clone the repository.
git clone https://github.com/rose-codes_/rx-roster-back-end.git
- Install NPM packages.
npm install
- Add
/node_modules
to the.gitignore
file if it is not already listed. - Create a
.env
file and add this to it:REACT_APP_BACKEND_URL=https://localhost:[port number you set in backend repo]
- Add the
.env
file to the.gitignore
.
To launch the full-stack application, you will have to start both the React server in the frontend repo and the Node/Express server in the backend repo.
Start the servers by running the respective commands:
- Frontend:
npm run start
- Backend:
npm run dev
These commands run the servers in development mode. Please check each repo's package.json
file to see other commands to start the servers.
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation
- Add calendar widget to dashboard
- Add side navigation to dashboard
- Create separate page for "Add New Medication" form component
- Revamp "All Medications" page
- Add pharmacies widget
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Rose Le - @rhle - [email protected]
GitHub Link: https://github.com/rose-codes/rx-roster-back-end
Project Link: https://rx-roster-back-end.heroku.com
Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!