This setup uses docker
and docker-compose
for local development, as defined in docker-compose.yml
. Installation instructions for various platforms can be found here.
Copy .env-example
to .env
(cp .env-example .env
) and fill in the appropriate values.
Clone mark-one to a folder beside this project - e.g:
. ├── course-planner ├── course-planner-etl ├── mark-one
If in development, check out the develop branch:
git checkout develop
Install the required packages:
npm install
Start the project, run:
docker-compose up
Run the database migrations:
docker-compose exec node npm run orm -- migration:run
Run the database migrations generate if you have database schema changes:
docker-compose exec node npm run orm -- migration:generate -n [name-of-the-migration]
docker-compose exec node npm run orm -- migration:run
switch to course-planner-etl and migrate the data:
cd ../course-planner-etl
git pull
npm install
npm run start
Note: You need to remove the old data from docker volume in order to migrate new the data and schema, otherwise the old data and schema might cause issues.
docker volume ls
docker volume rm course-planner_postgres_data