- Copy .env file:
cp ./docker/.env.template .env
- Set FT_ID and FT_SECRET in .env (42 API OAuth2)
- Start project:
docker-compose up [--build]
- Set permissions (because docker runs as root):
sudo chown -R $USER:$USER www/
- Open a terminal:
docker-compose exec [client, server] sh
- https://en.wikipedia.org/wiki/Singlepage_application
- https://api.intra.42.fr/apidoc/guides/getting_started
- Authentication: https://github.com/jaredhanson/passport
- CRUD: https://github.com/nestjsx/crud
- Reset projet:
sudo rm -rf db www/client/* www/server/*
- Generate app:
docker-compose run --no-deps server nest new server --skip-git
docker-compose run --no-deps client yarn create @vitejs/app .