Portfolio made using NuxtJS, TailwindCSS and Sanity CMS.
Visit Website
·
Report Bug
·
Fork Project
I made this project during Hack Club Arcade to learn more about how to use a content management system, such as Sanity CMS together with tools I'm already familiar with, which in this case is NuxtJS and TailwindCSS. I also wanted to create a portfolio of my own for my development group, LC Development. So win win on my end!
This is going to be updated and continued to be worked on since it will remain as our main portfolio for the group. If you have any suggestions or improvements, feel free to open an issue or fork the project and create a pull request. Thanks!
Some stuff in here will be quite quirky, so don't be surprised if you see some weird stuff in the code. I'm still learning and I'm trying to improve as much as I can. This is only like my third project or something using Vue/Nuxt. Thanks for understanding!
This section contains some of the most notable tools/libraries used in this project.
How to run this project locally.
-
Create an project on Sanity and get the project ID and dataset name. You can find theese on the project dashboard. The Dataset will be under
Dataset
in the navigation bar. -
Proceed to creating your read API token which will be used by the website to get data. You can do this by going to
API
in the navigation bar and thenAdd API Token
under theTokens
section. Give it a name and selectViewer
under permissions. Save the token for the next step. -
IMPORTANT! Do not forget to add
http://localhost:3000
to CORS Origins on the same API page. This is necessary for the website to fetch data from the Sanity API correctly. (Only localhost:3000 is necessary for development)
Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.
- First of all, run the following command in both the
app
andstudio
folder to install the necessary dependencies.npm install
- Fill out the fields
studio/.env
with your own project ID, dataset name and studio URL. (http://localhost:3333)SANITY_STUDIO_PROJECT_ID="XXXXXXX" SANITY_STUDIO_DATASET="production" SANITY_STUDIO_PREVIEW_URL="http://localhost:3333"
- Copy
app/.env.example
toapp/.env
and fill out the fields with your own project ID, dataset name and read API token.# Optional - The URL of your Sanity Studio NUXT_SANITY_STUDIO_URL="http://localhost:3333" # Required - The ID of your Sanity project NUXT_SANITY_PROJECT_ID="XXXXXXXX" # Required - The dataset of your Sanity project NUXT_SANITY_DATASET="production" # Required - The generated read token, used to fetch data on the server. NUXT_SANITY_API_READ_TOKEN="XXXXXXXX"
- Run the following command in the
studio
folder to deploy the Sanity Studio.It will give you a URL to access the studio where you can input dummy information to show on the website.npm run deploy
- Run the following command in the
app
folder to start the NuxtJS dev server.Congrats! You now have the project running locally. You can access the website onnpm run dev
http://localhost:3000
and the studio on the link you got from the console when doing step 4.
- 🚢 Release project
- 🌿 Create Development branch
- 📱 Full mobile support (responsiveness)
- 🪵 Add Changelog
- 🧹 Clean up the code
- 🌙 Dark Mode/Light mode
- 📖 Improve the project post page
- ✒️ Multi-language Support
- 🇸🇪 Swedish
- 🇺🇸 English
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make the portfolio better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks!
- Fork the Project
- Change the project and add your files or changes (
git add *
) - Commit your Changes (
git commit -m 'Feat | Added XXXX to the XXX'
) - Push to the Branch (
git push
) - Open a Pull Request
Lazyllama - @Lazyllamaa - [email protected]
Project Link: https://github.com/lcholdings/lcdevelopment-portfolio
Thanks to the following people for their help and inspiration: