A small fullstack web application to plan a study schedule
You should include some variables in .env file:
- MONGODB_URI - link to the mongo database for production
- MONGODB_URI_TEST - link to the test database. Although, the project does not use since as for development build mongo container is utilized
- VITE_REACT_BACKEND_URL - URL for backend. Used in the frontend
For development in container run this command in the root of the project:
$ docker-compose -f docker-compose.dev.yml up
For production build you can run:
$ docker-compose up
Make sure you delete previous containers if you switch between development and production build.
For development build run this command in the ./frontend folder:
$ npm run dev
Fo running tests, start the test backend first, then development build, and then:
$ npm run cypress:open
For development build run this command in the ./backend folder:
$ docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
For running tests:
// Before the first time
$ chmod +x run_tests.sh
$ ./run_tests.sh
NOTE: On Widnows machines you should use Git Bash or something like this to run a bash script. Otherwise, copy-paste all commands from the script into the terminal one by one
- React
- Typescript
- Redux Toolkit
- Chakra UI
- Express Typescript
- Cypress
- Docker
- Jest