A technical test project, the aim is to create a simple to-do app using NestJS, Next.js & MongoDB.
Caution
Sensitive environment variables have been included into an encrypted file for your own convenience.
Obviously that would not be a decent workflow for any other situation.
Warning
Due to the way GitHub authentication works (OAuth redirection), the app frontend must be ran on localhost:3000 on the machine you are browsering the website with. Or you can forward the query params manually after sign in.
Clone the repo:
git clone https://github.com/Akronae/todealt
cd todealt
Decrypt .env.enc
file with the password you received (openssl required):
bash decrypt.sh
# enter pasword and hit enter
Tip
If you did not receive the password or if you are experiencing troubles, feel free to call me at any time.
Make sure to have Docker and Docker Compose installed on your machine.
Then run:
docker compose up
Wait for every container to start up and then visit: http://localhost:3000
Tip
NVM and Yarn are used in these examples, you can easily adapt them to your own tools if you need to.
Warning
You need to have a MongoDB instance running on the MONGO_URI
address specified in your .env
.
Copy your decrypted .env
cp .env app/.env.local
cp .env api/.env.local
Run Api:
cd api
nvm install
yarn
yarn start:dev
In another terminal, run App:
cd app
nvm install
yarn
yarn dev
- Fully dockerized
- Sign in with GitHub
- Responsive
- OpenAPI specs automatically generated on startup
- Swagger doc
- Using NestJS & MongoDB with Mongoose
- Requests automatically generated from OpenAPI specs with
yarn openapi:gen
- Using Ant Design
- Notes can be tagged
- Using latest Next.js with
/app
router
- Implement testing
- Make
/notes
code more readable