--- updatedAt: 2022-12-16T23:30:47.443Z layout: post title: A Fresh, Secure and Tidy Strapi Project from Source subheading: A clean work space is a happy work space. slug: a-fresh-secure-and-tidy-strapi-project-from-source date: 2022-12-16 author: Charles author_image: /uploads/c_avatar_30ba895a14.webp banner_image: /uploads/tidy_9aa686bedb.webp banner_image_description: A clean work space is a happy work space category: How-to tags: Strapi, Linux, ---

In this tutorial, we will be creating and rebuilding a fresh Strapi application. This article will be beneficial for future upgrades and aid in documentation for other sites being created. 

Requirements:

0. Make a complete backup of your current, soon to be previous Strapi project.

cp -rv strapi-project ./strapi-project_backup

1. File directory should have the following like

1a. If you have a previous Strapi project, remove the following files and folders.

then, the following folders should be leftover.

2. Install the Strapi Application

From the appropriate file structure we begin by installing the appropriate packages from the package.json.  
This will create a directory called node_modules and a yarn.lock file.

I also recommend disabling the tracking analytics by updating the package.json to the following:

./package.json

 "strapi": {
   "uuid": false
 },
 …

Finally, we yarn install && yarn build && yarn develop

References:

Axios Wrapper Bug: https://github.com/strapi/strapi/pull/15131  
Unsplash by Toa Heftiba https://unsplash.com/@heftiba