Allergy Management System (AMS) is simple CRUD application created to showcase the learning about the NodeJS, React, DB and CI/CD. The main purpose of this application is to create the simple application to learn about the new technology.
- NodeJS
- PostgreSQL
- ReactJS
To run this application, follow the following steps.
- Clone the repository from this link
- After cloning the repository, open the repository in your any favorite code editor (VS Code).
- Install the dependencies by running the command
npm install
. This will install all the required dependencies. - Make sure you have installed the Postgres Database in your local machine. Table creation will be automatic once the application is run, by sequelize.
- Create a database of your choice.
- Create and update the
.env
file based on the required configurations - Run the application with command
npm run dev
.
To use the application, user must be logged in into the system to add the allergy. For registration, simple email, password along with first name and last name is required. After registration, user can use the registered email and password to login into the system. JWT token is being used for authentication purpose.
- Registration
- Login
- Refresh Token
- Create, Update, Delete Allergy
- Upload image
- Unit tests
- Swagger Integrations
Here's the postman link for the available endpoints
Sequelize migration has been used for managing the database migrations. Updating table becomes easier with the introduction of the migration tools.
To use sequelize-migration, follow the following steps:
- Create migration file
npx sequelize-cli migration:create --name modify_table_add_new_fields
- Run Migration
npx sequelize-cli db:migrate