https://github.com/srvariable/42projecttemplatebuilder
A template generator for 42 C Projects
https://github.com/srvariable/42projecttemplatebuilder
42 open-source python template
Last synced: about 1 month ago
JSON representation
A template generator for 42 C Projects
- Host: GitHub
- URL: https://github.com/srvariable/42projecttemplatebuilder
- Owner: SrVariable
- Created: 2023-11-12T11:27:36.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-05-29T11:43:00.000Z (about 1 year ago)
- Last Synced: 2025-05-29T13:13:32.717Z (about 1 year ago)
- Topics: 42, open-source, python, template
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 42 Project Template Builder
## Table of Contents
1. [Description](#description)
2. [Requirements](#requirements)
3. [Usage](#usage)
## Description
This is a Python script that builds a 42 Project Template for your C Projects.
## Requirements
- Git
- Python3
## Usage
Clone the repository:
```Shell
git clone https://github.com/SrVariable/42ProjectTemplateBuilder
```
Go inside the folder:
```Shell
cd 42ProjectTemplateBuilder
```
Run the file:
```Shell
python3 main.py
```
It will ask you the project name, your login, your email and a tag,
which will be displayed alongside 42 logo.
```Shell
Project Name: hello_world
Login: ribana-b
Email: ribana-b@student.42malaga.com
Tag: Málaga
```
> *Tag field is optional. By default, it is set to your campus, extracted
> from email.*
> [!NOTE]
>
> If you don't want to introduce your data every time you run the script
> you can create a `.env` file following the `.env.example` in the root
> directory of 42ProjectTemplateBuilder.
It will create the following directory tree in the current directory:
```text
| - hello_world
| | - include
| | | - hello_world.h
| | - src
| | | - hello_world.c
| | - utils
| | | - utils.c
| | - Makefile
```