- Install Dbservice: Install and run it locally following the steps mentioned over here.
- Install Go: Make sure you have Go installed (you can check by running
go version
). If it’s not installed, download and install it from golang.org.
To run the CMS locally, follow these steps:
-
Clone the repository to your local machine.
git clone https://github.com/avantifellows/nex-gen-cms.git
-
Create
.env
file at project root directory. -
Add following 2 key-value pairs in
.env
file.DB_SERVICE_ENDPOINT = http://localhost:4000/api/ DB_SERVICE_TOKEN = <BEARER_TOKEN used in .env file of your local db-service project>
-
Navigate to the project directory.
cd <path to local project root folder>
-
Run this command to download all necessary dependencies for the project.
go mod tidy
-
Run the application by running:
go run cmd/main.go
-
Open your browser and go to http://localhost:8080 to view the application.