_Migraine Journal allows people who suffer migraine crisis to track and identify their triggers and adapt their lives accordingly.
Migraine Journal is a FullStack Web application made by @inesza and @hugoviolas during the Ironhack Web Development Bootcamp in just over a week 🚀
This is just the backend part of the project, you can access the frontend repo from here.
Technologies used
- Javascript
- HTML
- CSS
- React
- Node
- Express
- Mongoose
- MongoDB
It implements 6 database models, full CRUD operations, sign up/sign in/logout.
Install the following packages on your local machine:
- npm version 8
- node version 18
- mongodb version 6
Clone this repo and cd
into it.
git clone <url>
cd <dir_name>
This project require some environment variables to run, it reads the file .env
on startup. An example file is provided .env.example
.
Environment variables:
PORT
: Port on which the the website is accessible,MONGO_URI
: URI of the mongo database (i.e.mongodb://127.0.0.1:27017/migraine-journal
)TOKEN_SECRET
: Secret used to sign the session ID cookie, see session docFRONTEND_URL
: URL used by the frontend server
npm install
Default data can be seed in the database with the following command.
npm run seed
npm run dev