Skip to content
Snippets Groups Projects

Development environment

Open Daniel Palomar requested to merge development-environment into main
1 file
+ 13
2
Compare changes
  • Side-by-side
  • Inline
+ 13
2
@@ -85,6 +85,17 @@ $ ansible-playbook playbooks/provision.yml -l dev
```
4. Create the `.env` file in the `acoords-backend` project following the example in the `.env.example` file.
5. Open a terminal and access to `/opt/acoords-backend/` and run `yarn install` and `yarn dev`.
5. Open a terminal and access to `/opt/acoords-backend/` and run:
5.1 `pyenv activate acoords`
5.2 `alembic upgrade head`
5.3 `python initialize.py` only the first time
5.4 `uvicorn app.api:app --reload --port 3001`
6. Open a terminal and access to `/opt/acoords-frontend/` and run `npm install`, `sequelize db:migrate` and `npm run dev`.
7. Open the browser and access to `http://acoords.local:3000` to see the frontend, to `http://acoords.local:8000` to see the backend. And to `http://acoords.local:9001` to see the etherpad.
\ No newline at end of file
7. Open the browser and access to `http://acoords.local:3000` to see the frontend, to `http://acoords.local:3001/api/docs` to see the backend API documentation and `http://acoords.local:9001` to see the etherpad.
## TODO
- [ ] Add a sudoers rule to allow the app user to run nginx and acoords-backend.service restart.
- [ ] Connect the back-front and etherpad.
Loading